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

[Python-Dev] Re: PEP 279 revisited

[Python-Dev] Re: PEP 279 revisitedholger krekel pyth@devel.trillke.net
Wed, 24 Apr 2002 17:04:18 +0200
On Wed, Apr 24, 2002 at 08:47:25AM -0400, Guido van Rossum wrote:

> > btw, i usually don't need an extra numbering for my dictionaries.
> > If really in need i would write
> > 
> >     list = dict.items()
> >     for index,item in items(list): ...
> > 
> > using the above semantics.
> 
> That's another argument why what this function (whatever it's called)
> does on dicts is irrelevant: you wouldn't want to use it on a dict
> anyway.  It's something for sequences and iterators.

Is it really a bad idea then to make 'this function' return
something useful for mapping types? 

This could also resolve the 'only rough analogy' problem for the 
name 'itemize' versus 'items'.  (Although these two are really 
different words it is a little confusing even to demi-gods:-)

  holger




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