Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix subtle bug in cleanup code in PyErr_NormalizeException(), detected | Guido van Rossum | 1997-12-09 | 1 | -2/+2 |
| | | | | | by Marc Lemburg. There's a path through the code where *val is NULL, but value isn't, and value should be DECREF'ed. | ||||
* | New version of PyErr_NewException() that is compatible with -X option. | Guido van Rossum | 1997-10-03 | 1 | -14/+35 |
| | |||||
* | PyErr_NormalizeException(): If the exception's type is a class and the | Barry Warsaw | 1997-09-30 | 1 | -0/+8 |
| | | | | | instance's class is a subclass of this, then use the instance's class as the exception type. | ||||
* | New API PyErr_NewException(name, base, dict) to create simple new exceptions. | Guido van Rossum | 1997-09-16 | 1 | -0/+31 |
| | |||||
* | PyErr_NoMemory(): If the pre-instantiated memory exception is non-null | Barry Warsaw | 1997-08-29 | 1 | -1/+9 |
| | | | | | | (PyExc_MemoryErrorInst) raise this instead of PyExc_MemoryError. This only happens when exception classes are enabled (e.g. when Python is started with -X). | ||||
* | Three new C API functions: | Barry Warsaw | 1997-08-22 | 1 | -0/+105 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | - 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. | ||||
* | Use strerror on the mac if using MSL (Jack). | Guido van Rossum | 1997-08-12 | 1 | -6/+0 |
| | |||||
* | Massive changes for separate thread state management. | Guido van Rossum | 1997-05-05 | 1 | -32/+44 |
| | | | | | All per-thread globals are moved into a struct which is manipulated separately. | ||||
* | Quickly renamed. Also removed the long comment explaining why this is | Guido van Rossum | 1997-04-29 | 1 | -90/+56 |
| | | | | better than the old error API. | ||||
* | Keep Microsoft VC happy. | Guido van Rossum | 1997-04-11 | 1 | -0/+2 |
| | |||||
* | (Jack:) On the Mac, use standard strerror() if using MSL C-library. | Guido van Rossum | 1997-04-11 | 1 | -0/+2 |
| | |||||
* | Oops, remove an unused variable from PyErr_Format(). | Guido van Rossum | 1997-02-14 | 1 | -1/+0 |
| | |||||
* | Added convenience function PyErr_Format(exception, formatstring, ...) -> NULL. | Guido van Rossum | 1997-02-14 | 1 | -0/+27 |
| | |||||
* | Add const to error and newstring functions | Guido van Rossum | 1996-12-10 | 1 | -1/+1 |
| | |||||
* | New permission notice, includes CNRI. | Guido van Rossum | 1996-10-25 | 1 | -13/+20 |
| | |||||
* | remove unwanted fatal() from err_badcall() | Guido van Rossum | 1995-09-18 | 1 | -1/+0 |
| | |||||
* | err_badcall() is fatal error | Guido van Rossum | 1995-08-28 | 1 | -0/+1 |
| | |||||
* | Porting to CW CFM68K | Jack Jansen | 1995-06-27 | 1 | -1/+1 |
| | |||||
* | changes in NT tests | Guido van Rossum | 1995-03-09 | 1 | -2/+3 |
| | |||||
* | rename macstrerror to PyMac_StrError; no EINTR test in CW | Guido van Rossum | 1995-02-18 | 1 | -8/+13 |
| | |||||
* | Undef strerror on the mac before redefining it | Jack Jansen | 1995-01-19 | 1 | -0/+1 |
| | |||||
* | Added 1995 to copyright message. | Guido van Rossum | 1995-01-04 | 1 | -2/+2 |
| | | | | | | bltinmodule.c: fixed coerce() nightmare in ternary pow(). modsupport.c (initmodule2): pass METH_FREENAME flag to newmethodobject(). pythonrun.c: move flushline() into and around print_error(). | ||||
* | Lots of changes, most minor (fatal() instead of abort(), use of | Guido van Rossum | 1995-01-02 | 1 | -7/+20 |
| | | | | | | err_fetch/err_restore and so on). But... NOTE: import.c has been rewritten and all the DL stuff is now in the new file importdl.c. | ||||
* | Added hook for better mac error messages. | Jack Jansen | 1994-12-14 | 1 | -0/+10 |
| | |||||
* | call err_clear in err_setval | Guido van Rossum | 1994-11-10 | 1 | -2/+2 |
| | |||||
* | * Python/errors.c (err_clear): clear interpreter stack trace | Guido van Rossum | 1994-09-29 | 1 | -1/+5 |
| | |||||
* | err_clear: clear interpreter stack trace | Guido van Rossum | 1994-08-29 | 1 | -40/+7 |
| | |||||
* | * Makefile: added all: and default: targets. | Guido van Rossum | 1993-07-05 | 1 | -3/+0 |
| | | | | | | | | | | | | * many files: made some functions static; removed "extern int errno;". * frozenmain.c: fixed bugs introduced on 24 June... * flmodule.c: remove 1.5 bw compat hacks, add new functions in 2.2a (and some old functions that were omitted). * timemodule.c: added MSDOS floatsleep version . * pgenmain.c: changed exit() to goaway() and added defn of goaway(). * intrcheck.c: add hack (to UNIX only) so interrupting 3 times will exit from a hanging program. The second interrupt prints a message explaining this to the user. | ||||
* | * Changed many files to use mkvalue() instead of newtupleobject(). | Guido van Rossum | 1993-03-16 | 1 | -7/+6 |
| | | | | | | | | | | * Fixcprt.py: added [-y file] option, do only files younger than file. * modsupport.[ch]: added vmkvalue(). * intobject.c: use mkvalue(). * stringobject.c: added "formatstring"; renamed string* to string_*; ceval.c: call formatstring for string % value. * longobject.c: close memory leak in divmod. * parsetok.c: set result node to NULL when returning an error. | ||||
* | Copyright for 1992 added | Guido van Rossum | 1992-04-05 | 1 | -1/+1 |
| | |||||
* | EOF in source is a SyntaxError, not an EOFError. | Guido van Rossum | 1992-02-05 | 1 | -1/+1 |
| | |||||
* | EOF while parsing should raise EOFError, not SyntaxError. | Guido van Rossum | 1991-12-24 | 1 | -1/+1 |
| | |||||
* | Use SyntaxError. | Guido van Rossum | 1991-12-16 | 1 | -4/+4 |
| | |||||
* | Use new exceptions. | Guido van Rossum | 1991-12-10 | 1 | -3/+3 |
| | |||||
* | Check for EINTR and turn it into KeyboardInterrupt | Guido van Rossum | 1991-10-20 | 1 | -1/+6 |
| | | | | in err_errno(). | ||||
* | Added copyright notice. | Guido van Rossum | 1991-02-19 | 1 | -0/+24 |
| | |||||
* | Changed include of <errno.h> | Guido van Rossum | 1990-12-20 | 1 | -2/+5 |
| | |||||
* | "Compiling" version | Guido van Rossum | 1990-12-20 | 1 | -33/+50 |
| | |||||
* | Reformulated err_badarg error message. | Guido van Rossum | 1990-11-09 | 1 | -1/+1 |
| | |||||
* | Added prototype for strerror. | Guido van Rossum | 1990-11-02 | 1 | -0/+2 |
| | |||||
* | Added intobject.h and tupleobject.h includes. | Guido van Rossum | 1990-10-26 | 1 | -0/+2 |
| | |||||
* | Added err_badcall(). | Guido van Rossum | 1990-10-21 | 1 | -0/+6 |
| | |||||
* | Adde dconvenience functions. | Guido van Rossum | 1990-10-14 | 1 | -0/+31 |
| | |||||
* | Initial revision | Guido van Rossum | 1990-10-14 | 1 | -0/+111 |