mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Rename popitem() to pop(). (An idea from SF patch 597444.)
This commit is contained in:
parent
5033b36c44
commit
c9196bc88d
2 changed files with 3 additions and 3 deletions
|
@ -420,7 +420,7 @@ class Set(BaseSet):
|
|||
except KeyError:
|
||||
pass
|
||||
|
||||
def popitem(self):
|
||||
def pop(self):
|
||||
"""Remove and return a randomly-chosen set element."""
|
||||
return self._data.popitem()[0]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue