Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use Py_CHARMASK for ctype macros. Fixes bug #232787. | Martin v. Löwis | 2001-03-06 | 1 | -4/+4 |
| | |||||
* | Add PyErr_WarnExplicit(), which calls warnings.warn_explicit(), with | Guido van Rossum | 2001-02-28 | 1 | -0/+42 |
| | | | | explicit filename, lineno etc. arguments. | ||||
* | Improve SyntaxErrors for bad future statements. Set file and location | Jeremy Hylton | 2001-02-28 | 1 | -0/+79 |
| | | | | | | | for errors raised in future.c. Move some helper functions from compile.c to errors.c and make them API functions: PyErr_SyntaxLocation() and PyErr_ProgramText(). | ||||
* | Add PyErr_Warn(). | Guido van Rossum | 2000-12-15 | 1 | -0/+34 |
| | |||||
* | Ka-Ping Yee <ping@lfw.org>: | Fred Drake | 2000-10-24 | 1 | -1/+1 |
| | | | | | | Changes to error messages to increase consistency & clarity. This (mostly) closes SourceForge patch #101839. | ||||
* | Avoid a couple of "value computed is not used" warnings from gcc -Wall; | Fred Drake | 2000-10-10 | 1 | -2/+2 |
| | | | | | | | these computations are required for their side effects in traversing the variable arguments list. Reported by Marc-Andre Lemburg <mal@lemburg.com>. | ||||
* | REMOVED all CWI, CNRI and BeOpen copyright markings. | Guido van Rossum | 2000-09-01 | 1 | -9/+0 |
| | | | | This should match the situation in the 1.6b1 tree. | ||||
* | code part of patch #100895 by Fredrik Lundh | Jeremy Hylton | 2000-09-01 | 1 | -4/+124 |
| | | | | | PyErr_Format computes size of buffer needed rather than relying on static buffer. | ||||
* | refactor __del__ exception handler into PyErr_WriteUnraisable | Jeremy Hylton | 2000-09-01 | 1 | -0/+27 |
| | | | | | add sanity check to gc: if an exception occurs during GC, call PyErr_WriteUnraisable and then call Py_FatalEror. | ||||
* | Improve the exceptions raised by PyErr_BadInternalCall(); adding the | Fred Drake | 2000-08-24 | 1 | -2/+15 |
| | | | | | | filename and line number of the call site to allow esier debugging. This closes SourceForge patch #101214. | ||||
* | Do not set a MemoryError exception over another MemoryError exception, | Vladimir Marangozov | 2000-08-18 | 1 | -0/+4 |
| | | | | thus preserving the first one that has been raised. | ||||
* | Avoid dumping core when PyErr_NormalizeException() is called without | Guido van Rossum | 2000-08-07 | 1 | -0/+6 |
| | | | | an exception set. This shouldn't happen, but we see it at times... | ||||
* | Mass ANSIfication of function definitions. Doesn't cover all 'extern' | Thomas Wouters | 2000-07-22 | 1 | -51/+17 |
| | | | | declarations yet, those come later. | ||||
* | delete obsolete SYMANTEC__CFM68K__ #ifdefs | Skip Montanaro | 2000-07-12 | 1 | -4/+0 |
| | |||||
* | Nuke all remaining occurrences of Py_PROTO and Py_FPROTO. | Tim Peters | 2000-07-09 | 1 | -2/+2 |
| | |||||
* | Change copyright notice - 2nd try. | Guido van Rossum | 2000-06-30 | 1 | -6/+0 |
| | |||||
* | Change copyright notice. | Guido van Rossum | 2000-06-30 | 1 | -22/+7 |
| | |||||
* | PyErr_GivenExceptionMatches(): Check for err==NULL and exc==NULL and | Barry Warsaw | 2000-05-02 | 1 | -2/+6 |
| | | | | | | | | | | return 0 (exceptions don't match). This means that if an ImportError is raised because exceptions.py can't be imported, the interpreter will exit "cleanly" with an error message instead of just core dumping. PyErr_SetFromErrnoWithFilename(), PyErr_SetFromWindowsErrWithFilename(): Don't test on Py_UseClassExceptionsFlag. | ||||
* | Mark discovered a bug in his patch: he didn't *use* PyExc_WindowsError | Guido van Rossum | 2000-03-02 | 1 | -1/+1 |
| | | | | in PyErr_SetFromWindowsErrWithFilename() like he intended to... :-) | ||||
* | Mark pointed out a buglet in his patch: i < _sys_nerr isn't strong | Guido van Rossum | 2000-02-21 | 1 | -1/+1 |
| | | | | | enough, it could be negative. Add i > 0 test. (Not i >= 0; zero isn't a valid error number.) | ||||
* | Patch by Mark Hammond: | Guido van Rossum | 2000-02-17 | 1 | -15/+75 |
| | | | | | | | | | | * Changes to a recent patch by Chris Tismer to errors.c. Chris' patch always used FormatMessage() to get the error message passing the error code from errno - but errno and FormatMessage use a different numbering scheme. The main reason the patch looked OK was that ENOFILE==ERROR_FILE_NOT_FOUND - but that is about the only shared error code :-). The MS CRT docs tell you to use _sys_errlist()/_sys_nerr. My patch does also this, and adds a very similar function specifically for win32 error codes. | ||||
* | Patch by Christian Tismer for Win32, to use FormatMessage() instead of | Guido van Rossum | 1999-04-21 | 1 | -2/+29 |
| | | | | strerror(). This improves the quality of the error messages. | ||||
* | Use PyThreadState_GET() macro. | Guido van Rossum | 1998-12-21 | 1 | -1/+1 |
| | |||||
* | When errno is zero, avoid calling strerror() and use "Error" for the | Guido van Rossum | 1998-10-14 | 1 | -2/+7 |
| | | | | message. | ||||
* | PyErr_SetFromErrnoWithFilename(): New function which supports setting | Barry Warsaw | 1998-07-23 | 1 | -2/+14 |
| | | | | | | | | | | | an exception from errno, with a supplied filename (primarily used by IOError and OSError). If class exceptions are used then the exception is instantiated with a 3-tuple: (errno, strerror, filename). For backwards compatibility reasons, if string exceptions are used, filename is ignored. PyErr_SetFromErrno(): Implement in terms of PyErr_SetFromErrnoWithFilename(). | ||||
* | 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 |
| |