We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.


a.popitem() remove and return an arbitrary (key, value) pair.

dict.popitem is useful to destructively iterate over a dictionary, as often used in set algorithms. If the dictionary is empty, calling dict.popitem raises a KeyError.