A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-March/034175.html below:

[Python-Dev] Re: More int/long integration issues

[Python-Dev] Re: More int/long integration issues [Python-Dev] Re: More int/long integration issuesDavid Abrahams dave@boost-consulting.com
Thu, 20 Mar 2003 16:43:51 -0500
Guido van Rossum <guido@python.org> writes:

> The bytecode compiler should be clever enough to see that you're
> writing
>
>   for i in range(...): ...
>
> and that there's no definition of range other than the built-in one
> (this requires a subtle change of language rules); it can then
> substitute an internal equivalent to xrange().

Ouch!  What happens to:

       def foo(seq):
           for x in seq:
               ...

       foo(xrange(small, really_big))

if xrange dies??

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4