dict.popitem

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.

 

A Django site. this page was rendered by a django application in 0.00s 2012-02-09 22:13:21.671207. hosted by webfaction.