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

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

[Python-Dev] {}.getitem() (was Re: PEP-0218) [Python-Dev] {}.getitem() (was Re: PEP-0218)Guido van Rossum guido@python.org
Thu, 30 Nov 2000 08:52:07 -0500
> Just curious: how would you get at the deleted value when
> using .popfirstkey() ?
> 
> But you have a point: dict.pop() returning the first filled slot
> in the dictionary as tuple (key,value) would probably be most
> effective. It's also nice and short.

Nice!

> BTW, I don't get the inspiration for the "first" part in those
> names... it makes you think that there's an order to dictionary
> items when in reality there isn't.

Actually there is -- the (arbitrary) order revealed by .keys().

--Guido van Rossum (home page: http://www.python.org/~guido/)



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