Comment on PEP-0322: Reverse Iteration Methods

Stephen Horne $$$$$$$$$$$$$$$$$ at $$$$$$$$$$$$$$$$$$$$.co.uk
Sat Sep 27 03:21:30 EDT 2003


On Sat, 27 Sep 2003 00:08:22 -0700, David Eppstein
<eppstein at ics.uci.edu> wrote:

>Speaking of which: str, int, etc., used to be functions, but they got 
>changed to be the initializers of types having those names.  Why is 
>xrange still a function rather than the initializer of the xrange type?

"""
Python 2.3 (#46, Jul 29 2003, 18:54:32) [MSC v.1200 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> xrange
<type 'xrange'>
"""

Looks like a type rather than a function to me, and the help appears
to be very good. Enumerate also seems to be a type with an
initialiser.

Are you using an earlier version?


-- 
Steve Horne

steve at ninereeds dot fsnet dot co dot uk




More information about the Python-list mailing list