On 6/22/2010 8:13 PM, Ben Finney wrote:
John Nagle<na...@animats.com>  writes:

   I want to test whether an object is an instance of any user-defined
class.  "isinstance" is less helpful than one would expect.

Right. The type hierarchy is now unified; there's essentially no
difference in later Python versions between user-defined types and
built-in types.

    OK, now that I know that, there's no problem.

    I'n doing something that involves program analysis through
introspection.  More on this later.

                                John Nagle
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to