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
commit21f424b5431f4911d4b4b76970a9bb8cd9e3f384 (patch)
tree83ca44ee768be9f64ccce046948882a55586e3d8 /Python/errors.c
parentf557ce36be6b22104ca295ae1f51e575d5147a95 (diff)
downloadcpython-21f424b5431f4911d4b4b76970a9bb8cd9e3f384.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