cpython/Python
Jeremy Hylton e2e2c9f41e PyErr_NormalizeException()
If a new exception occurs while an exception instance is being
created, try harder to make sure there is a traceback.  If the
original exception had a traceback associated with it and the new
exception does not, keep the old exception.

Of course, callers to PyErr_NormalizeException() must still be
prepared to have tb set to NULL.

XXX This isn't an ideal solution, but it's better than no traceback at
all.  It occurs if, for example, the exception occurs when the call to
the constructor fails before any Python code is executed.  Guido
suggests that it there is Python code that was about to be executed
-- but wasn't, say, because it was called with the wrong number of
arguments -- then we should point at the first line of the code object
anyway.
2001-09-26 19:58:38 +00:00
..
.cvsignore
atof.c Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774. 2001-07-26 13:41:06 +00:00
bltinmodule.c Get rid of builtin_open() entirely (the C code and docstring, not the 2001-09-13 21:49:44 +00:00
ceval.c Prevent a NULL pointer from being pushed onto the stack. 2001-09-26 19:24:45 +00:00
codecs.c
compile.c Add optional docstrings to member descriptors. For backwards 2001-09-20 20:46:19 +00:00
dup2.c
dynload_aix.c
dynload_beos.c
dynload_dl.c
dynload_hpux.c
dynload_mac.c Use #if TARGET_API_MAC_CARBON to determine carbon/classic macos, not #ifdef. 2001-01-19 23:34:06 +00:00
dynload_next.c Patch by Jonathan Wight (slightly reformatted) to forestall loading the 2001-08-11 21:54:11 +00:00
dynload_os2.c
dynload_shlib.c Patch #455231: Support ELF properly on OpenBSD. 2001-09-05 14:24:43 +00:00
dynload_stub.c
dynload_win.c Always pass a full path name to LoadLibraryEx(). Fixes some Windows 9x problems. As discussed on python-dev 2001-05-09 00:50:59 +00:00
errors.c PyErr_NormalizeException() 2001-09-26 19:58:38 +00:00
exceptions.c Introduce OverflowWarning -- to be issued when short int operations 2001-08-23 02:56:07 +00:00
fmod.c Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774. 2001-07-26 13:41:06 +00:00
frozen.c
frozenmain.c Add -E command line switch (ignore environment variables like PYTHONHOME 2001-07-23 16:30:27 +00:00
future.c Fix SF bug [ #450245 ] Error in parsing future stmts 2001-08-20 20:32:33 +00:00
getargs.c Fix core dump in PyArg_ParseTuple() with Unicode arguments. 2001-09-10 01:54:43 +00:00
getcompiler.c
getcopyright.c Because this code was derived from Python 1.6.1 (amongst others), the 2001-04-12 20:53:31 +00:00
getcwd.c
getmtime.c Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774. 2001-07-26 13:41:06 +00:00
getopt.c
getplatform.c
getversion.c
graminit.c Implement PEP 238 in its (almost) full glory. 2001-08-08 05:00:18 +00:00
hypot.c Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774. 2001-07-26 13:41:06 +00:00
import.c Add a new function imp.lock_held(), and use it to skip test_threaded_import 2001-08-30 05:16:13 +00:00
importdl.c
importdl.h
mactoolboxglue.c Replaced PyMac_FullPath by PyMac_FullPathname, which has an extra 'length' 2001-09-10 22:00:39 +00:00
marshal.c fix for part of bug #453523: disable unmarshalling of code objects in 2001-08-30 14:50:20 +00:00
memmove.c
modsupport.c Patch #445762: Support --disable-unicode 2001-08-17 18:39:25 +00:00
mysnprintf.c Add mysnprintf.c to Windows build, + squash compiler wngs in mysnprintf.c. 2001-07-31 22:10:29 +00:00
mystrtoul.c
pyfpe.c Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774. 2001-07-26 13:41:06 +00:00
pystate.c Add a low-level API to access interpreters, for David Beazley. 2001-07-19 12:19:27 +00:00
pythonrun.c Add warning mode for classic division, almost exactly as specified in 2001-08-31 17:40:15 +00:00
sigcheck.c
strdup.c
strerror.c
strtod.c Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774. 2001-07-26 13:41:06 +00:00
structmember.c Add optional docstrings to member descriptors. For backwards 2001-09-20 20:46:19 +00:00
symtable.c Add optional docstrings to member descriptors. For backwards 2001-09-20 20:46:19 +00:00
sysmodule.c Patch #445762: Support --disable-unicode 2001-08-17 18:39:25 +00:00
thread.c Repair more now-obsolete references to config.h. 2001-07-26 21:34:59 +00:00
thread_beos.h
thread_cthread.h
thread_foobar.h
thread_lwp.h
thread_nt.h SF bug [#456252] Python should never stomp on [u]intptr_t. 2001-08-29 21:37:10 +00:00
thread_os2.h
thread_pth.h
thread_pthread.h Improve threading on Solaris, according to SF patch #460269, submitted 2001-09-10 14:10:54 +00:00
thread_sgi.h
thread_solaris.h
thread_wince.h
traceback.c