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/2002-April/023521.html below:

[Python-Dev] Re: PEP 279 revisited

[Python-Dev] Re: PEP 279 revisited [Python-Dev] Re: PEP 279 revisitedNeal Norwitz neal@metaslash.com
Wed, 24 Apr 2002 08:26:03 -0400
holger krekel wrote:

	[discussion on naming enumerate() items()]

> Additionally
> 
>    items(dict)==dict.items()
> 
> would be satisfied, so the analogy is better than 'rough'.

They are not equivalent, see below.

Neal
--

>>> d = {10:20} 
>>> print d.items()
[(10, 20)]
>>> print enumerate(d)
<enumerate object at 0x40208bcc>
>>> for x in enumerate(d): print x
... 
(0, 10)




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