mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
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.
This commit is contained in:
parent
fbcf749479
commit
2d21d50c10
1 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue