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

Fredrik Lundh fredrik@pythonware.com
Thu, 30 Nov 2000 15:02:17 +0100

thanks, mal !

> 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.

+1 on "pop" (short for dist.items().pop())

> 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.

-0 on "first" (on the other hand, are we really
allowed to vote on pronouncements? ;-)