PyDocs

Nav

Data Types

UserDict.popitem

  • UserDict.popitem()
Remove and return a (key, value) pair as a 2-tuple.

Removes pairs in the same order as the wrapped mapping's popitem()
method. For dict objects (the default), that order is last-in,
first-out (LIFO).
Raises KeyError if the UserDict is empty.
0 Examples
No examples for collections/UserDict.popitem.
See Also
No see-alsos for collections/UserDict.popitem
0 Notes
No notes for UserDict.popitem