| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
This function will be reused by faulthandler.
|
|
|
|
|
|
|
|
|
|
|
| |
Issue #26563:
* Add _PyGILState_GetInterpreterStateUnsafe() function: the single
PyInterpreterState used by this process' GILState implementation.
* Enhance _Py_DumpTracebackThreads() to retrieve the interpreter state from
autoInterpreterState in last resort. The function now accepts NULL for interp
and current_tstate parameters.
* test_faulthandler: fix a ResourceWarning when test is interrupted by CTRL+c
|
|
|
|
| |
Issue #26564.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Issue #26564:
* Expose _Py_DumpASCII() and _Py_DumpDecimal() in traceback.h
* Change the type of the second _Py_DumpASCII() parameter from int to unsigned
long
* Rewrite _Py_DumpDecimal() and dump_hexadecimal() to write directly characters
in the expected order, avoid the need of reversing the string.
* dump_hexadecimal() limits width to the size of the buffer
* _Py_DumpASCII() does nothing if the object is not a Unicode string
* dump_frame() wrtites "???" as the line number if the line number is negative
|
|\
| |
| |
| | |
Patch by Michael Ensslin.
|
| |
| |
| |
| | |
_set_thread_local_invalid_parameter_handler.
|
| |
| |
| |
| |
| | |
and _Py_DumpTracebackThreads(). Document also these functions to explain that
the caller is responsible to call PyErr_CheckSignals().
|
| |\ |
|
| |\ \
| | | |
| | | |
| | | | |
PyFile_GetLine() failed. Patch written by Xavier de Gaye.
|
| | |\ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
exception tracebacks.
Initial patch by Mark Shannon.
|
| | | | |
| | | | |
| | | | |
| | | | | |
characters (U+0000..U+001f and U+007f).
|
| | | | |
| | | | |
| | | | |
| | | | | |
warnings in the Python/ subdirectory.
|
| |_|_|/
|/| | |
| | | |
| | | | |
Patch by Michael Ensslin.
|
|/ / /
| | |
| | |
| | | |
close the binary file to fix a resource warning.
|
| |/
|/|
| |
| | |
PyFile_GetLine() failed. Patch written by Xavier de Gaye.
|
|/
|
|
|
|
| |
exception tracebacks.
Initial patch by Mark Shannon.
|
|
|
|
| |
the exception to not call open() with an exception set.
|
|
|
|
|
|
|
| |
are used.
Move also _Py_IDENTIFIER() defintions to the top in modified files to remove
identifiers duplicated in the same file.
|
|
|
|
|
|
|
| |
instead of creating temporary Unicode string objects
Add also more identifiers in pythonrun.c to avoid temporary Unicode string
objets for the interactive interpreter.
|
|
|
|
| |
upside down.
|
|\ |
|
| | |
|
|\ \
| |/ |
|
| | |
|
|\ \
| |/
|/|
| |
| | |
Also use portable SEEK_SET instead of 0.
CID 1040639
|
| |\
| | |
| | |
| | |
| | |
| | | |
for error
CID 486768
|
| | |
| | |
| | |
| | |
| | | |
Report _Py_FindSourceFile() error, so the error is cleared;
and clear io.open(filename) exception on failure.
|
| | | |
|
| |/
|/|
| |
| |
| | |
Also use portable SEEK_SET instead of 0.
CID 1040639
|
|/
|
|
|
|
| |
for error
CID 486768
|
|
|
|
| |
instead of 100, to be able to display long file paths
|
|
|
|
|
| |
the source line. Such errors can't be reported anyway. This makes error
reporting work, even if the "io" module can't be loaded.
|
| |
|
| |
|
| |
|
|
|
|
| |
Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
filenames encoded to the filesystem encoding with surrogateescape error handler
(to support undecodable bytes), instead of UTF-8 in strict mode.
|
| |
|
|
|
|
|
|
| |
Fix the encoding of the modules filename.
Reindent also traceback.h, just because I hate tabs :-)
|
|
|
|
|
|
|
|
|
|
| |
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines
Untabify C files. Will watch buildbots.
........
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
svn+ssh://pythondev@svn.python.org/python/trunk
........
r72487 | jeffrey.yasskin | 2009-05-08 17:51:06 -0400 (Fri, 08 May 2009) | 7 lines
PyCode_NewEmpty:
Most uses of PyCode_New found by http://www.google.com/codesearch?q=PyCode_New
are trying to build an empty code object, usually to put it in a dummy frame
object. This patch adds a PyCode_NewEmpty wrapper which lets the user specify
just the filename, function name, and first line number, instead of also
requiring lots of code internals.
........
r72488 | jeffrey.yasskin | 2009-05-08 18:23:21 -0400 (Fri, 08 May 2009) | 13 lines
Issue 5954, PyFrame_GetLineNumber:
Most uses of PyCode_Addr2Line
(http://www.google.com/codesearch?q=PyCode_Addr2Line) are just trying to get
the line number of a specified frame, but there's no way to do that directly.
Forcing people to go through the code object makes them know more about the
guts of the interpreter than they should need.
The remaining uses of PyCode_Addr2Line seem to be getting the line from a
traceback (for example,
http://www.google.com/codesearch/p?hl=en#u_9_nDrchrw/pygame-1.7.1release/src/base.c&q=PyCode_Addr2Line),
which is replaced by the tb_lineno field. So we may be able to deprecate
PyCode_Addr2Line entirely for external use.
........
r72879 | jeffrey.yasskin | 2009-05-23 19:23:01 -0400 (Sat, 23 May 2009) | 14 lines
Issue #6042:
lnotab-based tracing is very complicated and isn't documented very well. There
were at least 3 comment blocks purporting to document co_lnotab, and none did a
very good job. This patch unifies them into Objects/lnotab_notes.txt which
tries to completely capture the current state of affairs.
I also discovered that we've attached 2 layers of patches to the basic tracing
scheme. The first layer avoids jumping to instructions that don't start a line,
to avoid problems in if statements and while loops. The second layer
discovered that jumps backward do need to trace at instructions that don't
start a line, so it added extra lnotab entries for 'while' and 'for' loops, and
added a special case for backward jumps within the same line. I replaced these
patches by just treating forward and backward jumps differently.
........
|
|
|
|
|
| |
type of tp_compare in a separate commit, for ease of reversion
should things go wrong.
|
|
|
|
| |
signed, not just namelen).
|