summaryrefslogtreecommitdiff
path: root/Include/pyerrors.h
AgeCommit message (Collapse)AuthorLines
1997-09-16New API PyErr_NewException(name, base, dict) to create simple new exceptions.Guido van Rossum-0/+4
1997-09-16[Py_Exc]NumberError => [Py_Exc]ArithmeticErrorBarry Warsaw-1/+1
1997-09-16Introduce PyExc_Exception as the conceptual root class for all exceptions.Guido van Rossum-0/+1
1997-08-29Added externs for three new exceptions PyExc_StandardError,Barry Warsaw-1/+7
PyExc_NumberError, and PyExc_LookupError. Also added extern for pre-instantiated exception instance PyExc_MemoryErrorInst. Removed extern of obsolete exception PyExc_AccessError.
1997-08-22Three new C API functions:Barry Warsaw-0/+6
- 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-04-02Added AssertionError.Guido van Rossum-0/+1
1997-03-31Remove ConflictError (which was also removed from bltinmodule.c, evenGuido van Rossum-1/+0
though the checkin message failed to note that).
1997-02-14Changes for Lee Busby's SIGFPE patch set.Guido van Rossum-0/+1
New file pyfpe.h, new exception FloatingPointError.
1997-02-14Added prototype for PyErr_Format(exception, formatstring, ...) -> NULL.Guido van Rossum-0/+1
1997-01-03Added declaration for PyErr_SetInterrupt.Barry Warsaw-1/+4
1996-12-10Add const to error and newstring functionsGuido van Rossum-1/+1
1996-10-25New permission notice, includes CNRI.Guido van Rossum-12/+19
1995-02-27make the type a parameter of the DL_IMPORT macro, for Borland CGuido van Rossum-19/+19
1995-01-17new names for lots of new functionsGuido van Rossum-1/+1
1995-01-12The great renaming, phase two: all header files have been updated toGuido van Rossum-33/+31
use the new names exclusively, and the linker will see the new names. Files that import "Python.h" also only see the new names. Files that import "allobjects.h" will continue to be able to use the old names, due to the inclusion (in allobjects.h) of "rename2.h".
1995-01-04Added 1995 copyright.Guido van Rossum-2/+2
object.h: made sizes and refcnts signed ints. stringobject.h: make getstrsize() signed int. methodobject.h: add METH_VARARGS and METH_FREENAME flag bit definitions.
1994-12-30Lots of small things, see ChangeLogGuido van Rossum-1/+2
1994-08-18Changes for dynamic linking under NTGuido van Rossum-19/+19
1994-08-01Merge alpha100 branch back to main trunkGuido van Rossum-3/+4
1993-07-28* Added support for X11 modules.Guido van Rossum-0/+11
* Makefile: change location of FORMS library. * posixmodule.c: turn #if 0 into #ifdef MSDOS (stuff in unistd.h or not) * Almost all .h files: added CPP magic to avoid duplicate inclusions and to support inclusion from C++.
1993-05-19Several changes in one:Guido van Rossum-0/+4
(1) dictionaries/mappings now have attributes values() and items() as well as keys(); at the C level, use the new function mappinggetnext() to iterate over a dictionary. (2) "class C(): ..." is now illegal; you must write "class C: ...". (3) Class objects now know their own name (finally!); and minor improvements to the way how classes, functions and methods are represented as strings. (4) Added an "access" statement and semantics. (This is still experimental -- as long as you don't use the keyword 'access' nothing should be changed.)
1993-03-29* Changed all copyright messages to include 1993.Guido van Rossum-2/+2
* Stubs for faster implementation of local variables (not yet finished) * Added function name to code object. Print it for code and function objects. THIS MAKES THE .PYC FILE FORMAT INCOMPATIBLE (the version number has changed accordingly) * Print address of self for built-in methods * New internal functions getattro and setattro (getattr/setattr with string object arg) * Replaced "dictobject" with more powerful "mappingobject" * New per-type functio tp_hash to implement arbitrary object hashing, and hashobject() to interface to it * Added built-in functions hash(v) and hasattr(v, 'name') * classobject: made some functions static that accidentally weren't; added __hash__ special instance method to implement hash() * Added proper comparison for built-in methods and functions
1992-04-05Copyright for 1992 addedGuido van Rossum-1/+1
1991-12-31Added SystemExit.Guido van Rossum-0/+1
1991-12-24Added ImportError.Guido van Rossum-0/+1
1991-12-16Regularize exceptions.Guido van Rossum-11/+9
1991-12-16SyntaxError.Guido van Rossum-0/+1
1991-12-10New exceptions.Guido van Rossum-6/+8
1991-02-19Added copyright notice.Guido van Rossum-0/+24
1990-12-20"Compiling" versionGuido van Rossum-1/+2
1990-10-21Added err_badcall() and planned new errors.Guido van Rossum-0/+9
1990-10-14Made exception objects extern.Guido van Rossum-7/+14
Added convenience functions.
1990-10-14Initial revisionGuido van Rossum-0/+17