xkenneth schrieb:
> Might be a silly question, but is it possible to selectively subclass,
> IE subclass is a supporting module is present and not otherwise.

Yes, something like this should work

class Foo(some, base, classes)
    pass

if condition:
    Temp = Foo
    class Foo(Temp, otherclass): pass


Alternatively, you can use the type-function to create classes explicit 
with a list of base-classes.

However it smells after bad design... what's your actual usecase?

Diez
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to