[Python-bugs-list] [ python-Bugs-591135 ] Mixin broken for new-style classes

noreply@sourceforge.net noreply@sourceforge.net
Mon, 05 Aug 2002 08:31:58 -0700


Bugs item #591135, was opened at 2002-08-05 15:31
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=591135&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Joost Jacob (jjacob)
Assigned to: Nobody/Anonymous (nobody)
Summary: Mixin broken for new-style classes

Initial Comment:

In article:
http://www.linuxjournal.com/article.php?sid=4540
Chuck Esterbrook mentions an elegant technique
called 'Mixin'.

Assigning to __bases__ is useful if you want to add
ancestors without changing the object's source code.

It does not work with new-style classes because the
 .__bases__ attribute is now read-only.
This is also mentioned on
http://www.python.org/2.2.1/bugs.html
at the bottom but I could not find a bug-report here at
SF.


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

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