Dumb python questions

Skip Montanaro skip at pobox.com
Thu Aug 16 00:07:30 EDT 2001


    Paul> Xrange is apparently a primitive type, which sounds like a big
    Paul> kludge.  Maybe in Python 2.2 they can make it into an iterator.
    Paul> That would be the right way to deal with this problem.

Problem there is that there are some semantics to xrange in that "dark
corner corner over there where the naughty boys play" that would disappear
if xrange was turned into an iterator.  See:

    http://www.python.org/peps/pep-0260.html

It will happen...

-- 
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/




More information about the Python-list mailing list