[Python-Dev] PEP 372 -- Adding an ordered directory to collections ready for pronouncement
Raymond Hettinger
python at rcn.com
Tue Mar 3 21:41:49 CET 2009
[Forest]
> Perhaps a new method like getfirst() would be worth while here?
Guido already gave you a way to access the first item using the existing API.
Using next(iter(d)) also works.
Raymond
More information about the Python-Dev
mailing list