On Jun 2, 11:55 pm, kaens <[EMAIL PROTECTED]> wrote: > On 02 Jun 2007 20:18:02 -0700, Paul Rubin > > <"http://phr.cx"@nospam.invalid> wrote: > > Dan Bishop <[EMAIL PROTECTED]> writes: > > > Note that recent versions of Python automatically promote the results > > > of integer arithmetic to long if necessary, so the distinction is less > > > relevant than it used to be. > > > Note however that even in recent versions, there are still parts of > > Python that get stuck at sys.maxint, for example the enumerate function. > > -- > >http://mail.python.org/mailman/listinfo/python-list > > I didn't know that - I'll keep it in mind though. I can imagine that > causing some pretty nasty annoyances if you ran into it unexpectedly
If you ever do, it's trivial to write your own enumerate(): def enumerate(seq): index = 0 for item in seq: yield (index, item) index += 1 -- http://mail.python.org/mailman/listinfo/python-list