diff options
author | Barry Warsaw <barry@python.org> | 1997-08-22 21:14:38 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1997-08-22 21:14:38 (GMT) |
commit | cde8b1ba0c0948f2cec00d11821214e06ca419cb (patch) | |
tree | cfc48eaf165a6c6b73123a7d599bb460f9c8f99a /Mac/Python | |
parent | 21c5c8fa5b205e5106360811964a67141852d428 (diff) | |
download | cpython-cde8b1ba0c0948f2cec00d11821214e06ca419cb.zip cpython-cde8b1ba0c0948f2cec00d11821214e06ca419cb.tar.gz cpython-cde8b1ba0c0948f2cec00d11821214e06ca419cb.tar.bz2 |
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 'Mac/Python')
0 files changed, 0 insertions, 0 deletions