diff options
author | Raymond Hettinger <python@rcn.com> | 2009-01-13 09:08:32 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2009-01-13 09:08:32 (GMT) |
commit | 2d21d50c10d1041f56d6f089d66a98b2bbf55e12 (patch) | |
tree | 64dd05eb5379c2cf9954f16ad7a92bac8a261f22 /Lib/_abcoll.py | |
parent | fbcf749479c088c933e74326f76358b0a57f6210 (diff) | |
download | cpython-2d21d50c10d1041f56d6f089d66a98b2bbf55e12.zip cpython-2d21d50c10d1041f56d6f089d66a98b2bbf55e12.tar.gz cpython-2d21d50c10d1041f56d6f089d66a98b2bbf55e12.tar.bz2 |
Issue 4922: Incorrect comments for MutableSet.add() and MutableSet.discard().
Needs to be backported to 2.6 and forward ported to 3.0 and 3.1.
Diffstat (limited to 'Lib/_abcoll.py')
-rw-r--r-- | Lib/_abcoll.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py index a5fee08..38b44a5 100644 --- a/Lib/_abcoll.py +++ b/Lib/_abcoll.py @@ -249,12 +249,12 @@ class MutableSet(Set): @abstractmethod def add(self, value): - """Return True if it was added, False if already there.""" + """Add an element.""" raise NotImplementedError @abstractmethod def discard(self, value): - """Return True if it was deleted, False if not there.""" + """Remove an element. Do not raise an exception if absent.""" raise NotImplementedError def remove(self, value): |