This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Make set.remove() behave more like Set.remove()
Type: Stage:
Components: Interpreter Core Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: rhettinger
Priority: normal Keywords:

Created on 2005-08-12 15:31 by rhettinger, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg26050 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2005-08-12 15:31
class H(set):
    def __hash__(self):return id(self)
s=H()

f=set()
f.add(s)
f.remove(s) #  this fails
msg26051 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2005-08-12 23:58
Logged In: YES 
user_id=80475

Fixed.

Lib/test/test_set.py 1.21 and 1.16.2.2
Objects/setobject.c 1.47 and 1.31.2.2, 
History
Date User Action Args
2022-04-11 14:56:12adminsetgithub: 42273
2005-08-12 15:31:48rhettingercreate