summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1997-08-22 21:14:38 +0000
committerBarry Warsaw <barry@python.org>1997-08-22 21:14:38 +0000
commitcde8b1ba0c0948f2cec00d11821214e06ca419cb (patch)
treecfc48eaf165a6c6b73123a7d599bb460f9c8f99a /Python/errors.c
parent21c5c8fa5b205e5106360811964a67141852d428 (diff)
downloadcpython-git-cde8b1ba0c0948f2cec00d11821214e06ca419cb.tar.gz
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.
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions