[Python-checkins] python/dist/src/Lib sets.py,1.4,1.5
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Tue, 20 Aug 2002 14:52:01 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv7149
Modified Files:
sets.py
Log Message:
Rename popitem() to pop(). (An idea from SF patch 597444.)
Index: sets.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/sets.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** sets.py 20 Aug 2002 21:38:37 -0000 1.4
--- sets.py 20 Aug 2002 21:51:58 -0000 1.5
***************
*** 421,425 ****
pass
! def popitem(self):
"""Remove and return a randomly-chosen set element."""
return self._data.popitem()[0]
--- 421,425 ----
pass
! def pop(self):
"""Remove and return a randomly-chosen set element."""
return self._data.popitem()[0]