[ python-Bugs-1257731 ] Make set.remove() behave more like Set.remove()

SourceForge.net noreply at sourceforge.net
Fri Aug 12 17:31:49 CEST 2005


Bugs item #1257731, was opened at 2005-08-12 10:31
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1257731&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Interpreter Core
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Raymond Hettinger (rhettinger)
Assigned to: Nobody/Anonymous (nobody)
Summary: Make set.remove() behave more like Set.remove()

Initial Comment:
class H(set):
    def __hash__(self):return id(self)
s=H()

f=set()
f.add(s)
f.remove(s) #  this fails

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1257731&group_id=5470


More information about the Python-bugs-list mailing list