[ python-Bugs-1459733 ] sets.Set can't be subclassed

SourceForge.net noreply at sourceforge.net
Tue Mar 28 04:41:23 CEST 2006


Bugs item #1459733, was opened at 2006-03-28 04:37
Message generated for change (Comment added) made by rubyjoker
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1459733&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 Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Michal Kwiatkowski (rubyjoker)
Assigned to: Nobody/Anonymous (nobody)
Summary: sets.Set can't be subclassed

Initial Comment:
sets.Set class fail to hide its implementation. 
Subclassing it and overriding __init__ causes an 
exception during object creation.

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

>Comment By: Michal Kwiatkowski (rubyjoker)
Date: 2006-03-28 04:41

Message:
Logged In: YES 
user_id=1310227

I'm posting a proposed patch with a test case covering this 
bug (shouldn't all standard library modules have tests?). It 
may introduce performance lost, as it removes __slots__ 
definition.

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

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


More information about the Python-bugs-list mailing list