how to tell if x is an instance of new class?

Michael Hudson mwh at python.net
Mon Aug 23 10:43:42 EDT 2004


Michal Vitecek <fuf at mageo.cz> writes:

>  hello,
> 
>  i'm (once again) fighting with python C API. i'm simply unable to
>  determine whether 'x' is an instance of new class or not.

The problem is that this question isn't terribly wll defined.  Why do
you want to know?

Cheers,
mwh

-- 
  The ultimate laziness is not using Perl.  That saves you so much
  work you wouldn't believe it if you had never tried it.
                                        -- Erik Naggum, comp.lang.lisp



More information about the Python-list mailing list