cpython/Include
Barry Warsaw c0dc92af7d Three new C API functions:
- int PyErr_GivenExceptionMatches(obj1, obj2)

  Returns 1 if obj1 and obj2 are the same object, or if obj1 is an
  instance of type obj2, or of a class derived from obj2

- int PyErr_ExceptionMatches(obj)

  Higher level wrapper around PyErr_GivenExceptionMatches() which uses
  PyErr_Occurred() as obj1.  This will be the more commonly called
  function.

- void PyErr_NormalizeException(typeptr, valptr, tbptr)

  Normalizes exceptions, and places the normalized values in the
  arguments.  If type is not a class, this does nothing.  If type is a
  class, then it makes sure that value is an instance of the class by:

  1. if instance is of the type, or a class derived from type, it does
     nothing.

  2. otherwise it instantiates the class, using the value as an
     argument.  If value is None, it uses an empty arg tuple, and if
     the value is a tuple, it uses just that.
1997-08-22 21:22:58 +00:00
..
Makefile Added Makefile with clean and clobber targets 1994-01-04 23:24:22 +00:00
Python.h Mass checkin (more to follow for other directories). 1997-08-02 02:56:48 +00:00
abstract.h A few comment alignment and clarifications. 1997-03-04 18:31:47 +00:00
bitset.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
cStringIO.h cPickle release 0.3 from Jim Fulton 1997-08-13 03:14:41 +00:00
ceval.h Mass checkin (more to follow for other directories). 1997-08-02 02:56:48 +00:00
classobject.h Remove redundant references to thread stuff -- long, long ago, there 1997-03-14 04:25:22 +00:00
cobject.h Added PyCObject_Import. 1997-01-22 20:48:48 +00:00
compile.h Add co_firstlineno and co_lnotab, for the line number table generated 1997-01-24 03:41:09 +00:00
complexobject.h Add prototypes for c_sum() etc. 1996-08-19 22:04:54 +00:00
config.h all: 1994 copyright 1994-01-02 00:11:39 +00:00
dictobject.h Subsumed mappingobject.h in dictobject.h. 1997-05-13 21:23:32 +00:00
errcode.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
eval.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
fileobject.h flushline and writestring can now return an error 1997-05-22 22:23:46 +00:00
floatobject.h Add cast to PyFloat_AS_DOUBLE macro, as suggested by Marc Lemburg. 1997-08-02 02:40:58 +00:00
frameobject.h Massive changes for separate thread state management. 1997-05-05 20:56:21 +00:00
funcobject.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
graminit.h Added assert grammar. 1997-04-02 05:24:08 +00:00
grammar.h Added prototype for PyGrammar_RemoveAccelerators(). 1997-08-12 14:57:08 +00:00
import.h Added prototype for PyImport_Import(). 1997-08-14 19:52:09 +00:00
intobject.h Add cast to PyInt_AS_LONG macro, as suggested by Marc Lemburg. 1997-08-02 02:41:13 +00:00
intrcheck.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
listobject.h added PyList_GET_SIZE macro 1997-01-06 22:42:00 +00:00
longintrepr.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
longobject.h Added PyLong_FromUnsignedLong() and PyLong_AsUnsignedLong(). 1997-01-03 17:14:46 +00:00
marshal.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
metagrammar.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
methodobject.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
modsupport.h Bump MS_DLL_ID to 1.5.0. 1997-08-12 14:48:03 +00:00
moduleobject.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
mymalloc.h Completely disable the declarations for malloc() and friends. Use 1997-08-21 16:13:37 +00:00
mymath.h Workaround for bug in Metrowerks MSL headers on 68K Macs (Jack) 1997-05-20 15:58:15 +00:00
myproto.h Oops, rename2.h was included by some other headers. 1997-05-07 23:50:40 +00:00
myselect.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
mytime.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
node.h Rename DEBUG macro to Py_DEBUG 1996-12-30 16:17:54 +00:00
object.h Add a cast to the call to _Py_Dealloc in the expanded version of 1997-08-05 02:30:44 +00:00
objimpl.h Oops, another forgotten renaming: varobject -> PyVarObject. 1997-05-15 21:31:03 +00:00
opcode.h Get rid of obsolete ACCESS_MODE opcode. 1997-05-09 00:39:04 +00:00
osdefs.h djgpp support. 1997-02-14 16:36:08 +00:00
parsetok.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
patchlevel.h Changed the patch level to 1.5a3, to avoid confusion with a2 (I'm not 1997-07-19 23:46:59 +00:00
pgenheaders.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
pydebug.h Got rid of "suppres printing" flag. 1997-07-19 19:26:38 +00:00
pyerrors.h Three new C API functions: 1997-08-22 21:22:58 +00:00
pyfpe.h Change PyFPE_END_PROTECT to PyFPE_END_PROTECT(v). v should be the 1997-03-14 04:23:42 +00:00
pystate.h Mass checkin (more to follow for other directories). 1997-08-02 02:56:48 +00:00
pythonrun.h Added new Py_IsInitalized() API function to test the 'initialized' flag. 1997-08-22 04:20:13 +00:00
pythread.h Massive changes for separate thread state management. 1997-05-05 20:56:21 +00:00
rangeobject.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
rename1.h __builtins__ mods (and sys_checkinterval for ceval.c) 1995-01-09 17:53:26 +00:00
rename2.h Oops, another forgotten renaming: varobject -> PyVarObject. 1997-05-15 21:31:03 +00:00
sliceobject.h Forget about Ellipses b/w compatibility. 1996-10-16 04:18:36 +00:00
stringobject.h Two speedup hacks. Caching the hash saves recalculation of a string's 1997-01-18 07:53:23 +00:00
structmember.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
sysmodule.h Mass checkin (more to follow for other directories). 1997-08-02 02:56:48 +00:00
thread.h Massive changes for separate thread state management. 1997-05-05 20:56:21 +00:00
token.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
traceback.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
tupleobject.h added PyTuple_GET_SIZE macro 1997-01-06 22:44:27 +00:00