summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-08-23 17:45:43 +0000
committerTim Peters <tim.peters@gmail.com>2002-08-23 17:45:43 +0000
commit4206de66a7d253151ec4ef5cbd4ebdb238957e56 (patch)
tree0ae9606200d42f823e652abb347316751a5fb596 /Doc
parent879519c402c7608ddbdc744974e2802074a8189a (diff)
downloadcpython-4206de66a7d253151ec4ef5cbd4ebdb238957e56.tar.gz
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 b029abe39f..74d09c791f 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()}