problem with hack using multiple inheritance for plugins

Duncan Booth duncan.booth at invalid.invalid
Thu Jun 28 13:42:57 CEST 2007


"massimo s." <devicerandom at gmail.com> wrote:

> Now I know that:
> - every sane Python class should return <type 'instance'> after
> type(self)

Wrong. Only old style classes are 'instance' type, and you should never be 
using an old style class unless you have a very good reason for it. Always 
use 'object' (or another builtin type if appropriate) as a base class.




More information about the Python-list mailing list