mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Issue #9599: Create PySys_FormatStdout() and PySys_FormatStderr()
Write a message formatted by PyUnicode_FromFormatV() to sys.stdout and sys.stderr.
This commit is contained in:
parent
982c018b32
commit
79766636b6
4 changed files with 87 additions and 18 deletions
|
@ -109,8 +109,19 @@ accessible to C code. They all work with the current interpreter thread's
|
|||
|
||||
.. cfunction:: void PySys_WriteStderr(const char *format, ...)
|
||||
|
||||
As above, but write to :data:`sys.stderr` or *stderr* instead.
|
||||
As :cfunc:`PySys_WriteStdout`, but write to :data:`sys.stderr` or *stderr*
|
||||
instead.
|
||||
|
||||
.. cfunction:: void PySys_FormatStdout(const char *format, ...)
|
||||
|
||||
Function similar to PySys_WriteStdout() but format the message using
|
||||
:cfunc:`PyUnicode_FromFormatV` and don't truncate the message to an
|
||||
arbitrary length.
|
||||
|
||||
.. cfunction:: void PySys_FormatStderr(const char *format, ...)
|
||||
|
||||
As :cfunc:`PySys_FormatStdout`, but write to :data:`sys.stderr` or *stderr*
|
||||
instead.
|
||||
|
||||
.. _processcontrol:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue