Bugs item #1459733, was opened at 2006-03-28 04:37
Message generated for change (Comment added) made by zseil
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: Žiga Seilnacht (zseil)
Date: 2006-03-28 08:33

Message:
Logged In: YES 
user_id=1326842

This is a bug in your code, you have to call
the base class's __init__ method. The error
does not occur during the object creation,
but later when repr(obj) fails due to incorrect
initialization.

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

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
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to