A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-April/022109.html below:

[Python-Dev] Re: PEP 279

[Python-Dev] Re: PEP 279Raymond Hettinger python@rcn.com
Tue, 2 Apr 2002 09:07:28 -0500
> Forget the others you mentioned, but insert one at the top, so we get:
> 
> 0. itemize
> 1. enumerate

Itemize() is too close to the unrelated concept of items:

>>> d = { 'red':'roja', 'blue':'azul' }
>>> d.items()
[('blue', 'azul'), ('red', 'roja')]
>>> list(itemize(d))
[(0,'blue'), (1,'red')]

Let's stick with enumerate().


Raymond






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