new-style-classes mixin

Lamy Jean-Baptiste jiba at tuxfamily.org
Mon Aug 5 08:04:55 EDT 2002


A solution i have used sometimes is to create a new class in doMixin,
rather changing the existent one (e.g. with "new.classobj" from the new
module).
It is not exactly the same, though, since other object of the same class
aren't be modified.

By the way, is there a good reason for __bases__ to be read-only ?

Jiba



More information about the Python-list mailing list