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/2000-November/010797.html below:

[Python-Dev] {}.getitem() (was Re: PEP-0218)

[Python-Dev] {}.getitem() (was Re: PEP-0218)Peter Funk pf@artcom-gmbh.de
Thu, 30 Nov 2000 10:25:37 +0100 (MET)
M.-A. Lemburg:
> Shouldn't be hard to do... the C API for this is already in place:
> PyDict_Next(). I'd prefer a method .getitem(), though, which then
> returns a tuple (key, value).

IMO '.pickitem()' would be a better name, since many people would
think, that 'getitem()' would take some kind of index as parameter.
Nevertheless I think this is a nice idea, though.

Regards, Peter
-- 
Peter Funk, Oldenburger Str.86, D-27777 Ganderkesee, Germany, Fax:+49 4222950260
office: +49 421 20419-0 (ArtCom GmbH, Grazer Str.8, D-28359 Bremen)



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