diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-03-15 21:49:37 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-03-15 21:49:37 +0100 |
commit | 89e7cdcb9c124a01c5c3a69e086a0e8b26e65545 (patch) | |
tree | b7cccbac029142a65590883492ad4edae96b7d70 /Python/pystate.c | |
parent | b380010782959bd2d483320ea237ed3b8dd3d4f7 (diff) | |
download | cpython-git-89e7cdcb9c124a01c5c3a69e086a0e8b26e65545.tar.gz |
Enhance and rewrite traceback dump C functions
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
Diffstat (limited to 'Python/pystate.c')
0 files changed, 0 insertions, 0 deletions