diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-08-16 17:36:42 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-08-16 17:36:42 (GMT) |
commit | 79766636b6fbc7e01af160008df9cd31112716d6 (patch) | |
tree | 3a14e0774a6549426c477b6af2cd2a5fbb723248 /Doc/c-api/sys.rst | |
parent | 982c018b3292e368e3fd808e36d91023296c5255 (diff) | |
download | cpython-79766636b6fbc7e01af160008df9cd31112716d6.zip cpython-79766636b6fbc7e01af160008df9cd31112716d6.tar.gz cpython-79766636b6fbc7e01af160008df9cd31112716d6.tar.bz2 |
Issue #9599: Create PySys_FormatStdout() and PySys_FormatStderr()
Write a message formatted by PyUnicode_FromFormatV() to sys.stdout and
sys.stderr.
Diffstat (limited to 'Doc/c-api/sys.rst')
-rw-r--r-- | Doc/c-api/sys.rst | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Doc/c-api/sys.rst b/Doc/c-api/sys.rst index bc4cbae..d4d2795 100644 --- a/Doc/c-api/sys.rst +++ b/Doc/c-api/sys.rst @@ -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: |