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-November/039977.html below:

[Python-Dev] Re: PEP 322: Reverse Iteration

[Python-Dev] Re: PEP 322: Reverse Iteration [Python-Dev] Re: PEP 322: Reverse IterationRaymond Hettinger python at rcn.com
Tue Nov 4 18:37:22 EST 2003
> >      iseq = irange(start, len(sq))
> >      if godown: iseq = reversed(iseq)
> 
> But this wouldn't work, would it?  irange() is an iterator, but
> reversed() only works for sequences (it refuses to secretly buffer the
> whole thing).

It works fine with xrange though.


Raymond Hettinger


More information about the Python-Dev mailing list

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