class instance checking -- newbie
emile at fenx.com
emile at fenx.com
Thu May 11 15:13:02 EDT 2000
>>> class A:
pass
>>> a = A()
>>> isinstance(a,A)
1
Emile van Sebille
emile at fenx.com
Tim Northover <tim at pnorthover.freeserve.co.uk> wrote in message
news:<m2wvl0ewiz.fsf at pnorthover.freeserve.co.uk>...
> I think I need to determine whether an object belongs to a particular
> class (specifically whether it is a MatchObject) and I couldn't find
> anything very useful in the documentation. Could someone possibly suggest
> an answer or point me at the correct part of the docs?
>
> Thanks.
>
> Tim N.
> --
> http://www.python.org/mailman/listinfo/python-list
>
More information about the Python-list
mailing list