popkey() method for dictionaries?

Erik Max Francis max at alcyone.com
Sun Nov 17 04:21:27 EST 2002


Fernando Pérez wrote:

> It could even be implemented as an extension to the existing popitem()
> method.
> Currently popitem() doesn't take any arguments, so the above 'key'
> argument
> could be made optional.
> 
> What do people think? Good/bad? Useless to most?

Seems like a reasonable extension, but I can't imagine it would come
into all that much use.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ I only drink to make other people seem interesting.
\__/ George Jean Nathan
    CSBuddy / http://www.alcyone.com/pyos/csbuddy/
 A Counter-Strike server log file monitor in Python.



More information about the Python-list mailing list