diff options
author | Victor Stinner <vstinner@python.org> | 2021-01-18 17:34:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-18 17:34:56 (GMT) |
commit | 314b8787e0c50985ba708034b84ff5b37a1d47de (patch) | |
tree | 12941638dbc2d4ad82496a56491b1c3504a79f41 /Include | |
parent | e232025025c8bd07c1d1b12a583a80c4a673f077 (diff) | |
download | cpython-314b8787e0c50985ba708034b84ff5b37a1d47de.zip cpython-314b8787e0c50985ba708034b84ff5b37a1d47de.tar.gz cpython-314b8787e0c50985ba708034b84ff5b37a1d47de.tar.bz2 |
bpo-42923: Py_FatalError() avoids fprintf() (GH-24242)
* Replace buffered fprintf() with unbuffered _Py_write_noraise()
in Py_FatalError().
* _Py_DumpHexadecimal() now accepts uintptr_t.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_traceback.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Include/internal/pycore_traceback.h b/Include/internal/pycore_traceback.h index 1f09241..169e99b 100644 --- a/Include/internal/pycore_traceback.h +++ b/Include/internal/pycore_traceback.h @@ -76,15 +76,11 @@ PyAPI_FUNC(void) _Py_DumpDecimal( int fd, unsigned long value); -/* Format an integer as hexadecimal into the file descriptor fd with at least - width digits. - - The maximum width is sizeof(unsigned long)*2 digits. - - This function is signal safe. */ +/* Format an integer as hexadecimal with width digits into fd file descriptor. + The function is signal safe. */ PyAPI_FUNC(void) _Py_DumpHexadecimal( int fd, - unsigned long value, + uintptr_t value, Py_ssize_t width); PyAPI_FUNC(PyObject*) _PyTraceBack_FromFrame( |