On 6/15/05, Anthra Norell <[EMAIL PROTECTED]> wrote: > > class C: ... > class C2 (C): ... > > # What I want to do: > > if x.__class__ in (C, C2): > do_something_with (x)
If you have an instance, you can use isinstance() built-in. - kv -- http://mail.python.org/mailman/listinfo/python-list