From: Raymond Hettinger Date: Tue, 13 Jan 2009 09:08:32 +0000 (+0000) Subject: Issue 4922: Incorrect comments for MutableSet.add() and MutableSet.discard(). X-Git-Tag: v2.7a1~2304 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d21d50c10d1041f56d6f089d66a98b2bbf55e12;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py index a5fee081df56..38b44a589501 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):