]> granicus.if.org Git - python/commit
Two new built-in functions: issubclass() and isinstance(). Both take
authorBarry Warsaw <barry@python.org>
Fri, 22 Aug 1997 21:14:38 +0000 (21:14 +0000)
committerBarry Warsaw <barry@python.org>
Fri, 22 Aug 1997 21:14:38 +0000 (21:14 +0000)
commitcde8b1ba0c0948f2cec00d11821214e06ca419cb
treecfc48eaf165a6c6b73123a7d599bb460f9c8f99a
parent21c5c8fa5b205e5106360811964a67141852d428
Two new built-in functions: issubclass() and isinstance().  Both take
classes as their second arguments.  The former takes a class as the
first argument and returns true iff first is second, or is a subclass
of second.

The latter takes any object as the first argument and returns true iff
first is an instance of the second, or any subclass of second.

Also, change all occurances of pointer compares against
PyExc_IndexError with PyErr_ExceptionMatches() calls.
Python/bltinmodule.c