Runtime mix-ins with new-style classes
Kevin Smith
Kevin.Smith at sas.com
Mon Apr 8 10:07:01 EDT 2002
Before I started using the new-style classes (i.e. 'object' based), I was
able to add mix-in base classes at runtime by modifying the __bases__
attribute. However, I recently tried to do the same thing with a new
-style class and got an error telling me that __bases__ was a readonly
attribute. Is there a was to do runtime mix-ins with new-style classes?
--
Kevin Smith
Kevin.Smith at sas.com
More information about the Python-list
mailing list