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

[Python-Dev] Re: Sets: elt in dict, lst.include

[Python-Dev] Re: Sets: elt in dict, lst.include [Python-Dev] Re: Sets: elt in dict, lst.includeM.-A. Lemburg mal@lemburg.com
Mon, 29 Jan 2001 20:03:41 +0100
With all this confusion about how to actually write the
iteration on dictionary items, wouldn't it make more sense
to implement an extension module which then provides a __getitem__
style iterator for dictionaries by interfacing to PyDict_Next() ?

The module could have three different iterators:

1. iterate over items
2.     ... over keys
3.     ... over values

The reasoning behind this is that the __getitem__ interface
is well established and this doesn't introduce any new
syntax while still providing speed and flexibility.

-- 
Marc-Andre Lemburg
______________________________________________________________________
Company:                                        http://www.egenix.com/
Consulting:                                    http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/



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