summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-08-23 17:45:43 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-08-23 17:45:43 (GMT)
commit54fd3e6ffcf42c9fa4fc0db545a3434e2f47ec94 (patch)
treea0e779730f9b22b848ca090fbbf11b00b9f1e807 /Doc
parentd10c6c949a66d83504848e2cbeef5a36d584f582 (diff)
downloadcpython-54fd3e6ffcf42c9fa4fc0db545a3434e2f47ec94.zip
cpython-54fd3e6ffcf42c9fa4fc0db545a3434e2f47ec94.tar.gz
cpython-54fd3e6ffcf42c9fa4fc0db545a3434e2f47ec94.tar.bz2
pop(): An arbitrary element is removed, not a random element.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libsets.tex3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/lib/libsets.tex b/Doc/lib/libsets.tex
index b029abe..74d09c7 100644
--- a/Doc/lib/libsets.tex
+++ b/Doc/lib/libsets.tex
@@ -143,7 +143,8 @@ but not found in \class{ImmutableSet}:
{Removes element \var{x} from set \var{s} like \var{s}.remove(\var{x})
but does not raise a KeyError if \var{x} is not in \var{s}}
\lineii{\var{s}.pop()}
- {Remove and return a randomly-chosen element from \var{s}}
+ {Remove and return an element from \var{s}; no guarantee is
+ made about which element is removed}
\lineii{\var{s}.update(\var{t})}
{Add elements from \var{t} to set \var{s}}
\lineii{\var{s}.clear()}