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/2001-June/015602.html below:

[Python-Dev] RE: PEP 260: simplify xrange()

[Python-Dev] RE: PEP 260: simplify xrange() [Python-Dev] RE: PEP 260: simplify xrange()Greg Ward gward@python.net
Tue, 26 Jun 2001 21:24:32 -0400
On 27 June 2001, Delaney, Timothy said:
> If this is to be done, I would also propose that xrange() and range() be
> changed to allow passing in a straight-out sequence such as in the following
> code in order to get rid of the need for range(len(seq)):

I'm +1 on the face of it without stopping to consider any implications.
;-)  Some bits of syntactic sugar as just too good to pass up.
range(len(sequence)) is syntactic cod-liver oil.

        Greg
-- 
Greg Ward - programmer-at-big                           gward@python.net
http://starship.python.net/~gward/
Blood is thicker than water, and much tastier.



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