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

[Python-Dev] PEP-0218

[Python-Dev] PEP-0218 [Python-Dev] PEP-0218Moshe Zadka Moshe Zadka <moshez@math.huji.ac.il>
Thu, 30 Nov 2000 10:44:38 +0200 (IST)
[Me]
> Hmmm...actually, I've been wanting a method .key() for dictionaries
> a long time. So if we give dictionaries this one small method, then
> we *can* do this in Python.

[MAL]
> 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).

Well, I'm sure the C API allows it. And if we do it, we might as well
do it right: add .key(), .value() and .item().

--
Moshe Zadka <moshez@math.huji.ac.il> -- 95855124
http://advogato.org/person/moshez




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