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

SourceForge.net noreply at sourceforge.net
Sat Aug 13 01:58:46 CEST 2005


Bugs item #1257731, was opened at 2005-08-12 10:31
Message generated for change (Comment added) made by rhettinger
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: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Raymond Hettinger (rhettinger)
Assigned to: Raymond Hettinger (rhettinger)
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

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

>Comment By: Raymond Hettinger (rhettinger)
Date: 2005-08-12 18:58

Message:
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, 


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

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