diff Python/thread_pthread.h @ 6145:341fcb7bad90 legacy-trunk

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.
author Barry Warsaw <barry@python.org>
date Fri, 22 Aug 1997 21:14:38 +0000
parents 60fca4783793
children a909a2869ac5
line wrap: on
line diff