[Tutor] replacing range with xrange

bob gailer bgailer at alum.rpi.edu
Mon Jan 28 15:43:56 CET 2008

Andy Cheesman wrote:
> Hi people,
> After watching a nice Google video on Python 3K, and seeing the 
> forthcoming removal of range, 
I disagree based on PEP 3100 (http://www.python.org/dev/peps/pep-3100/)

Built-in Namespace:
- Make built-ins return an iterator where appropriate (e.g. range(), 
zip(), map(), filter(), etc.)

To be removed:
- xrange(): use range() instead

Bob Gailer
919-636-4239 Chapel Hill, NC

More information about the Tutor mailing list