[Python-checkins] gh-93244: Document Py_PRINT_RAW in PyObject_Print() comment (93245)

vstinner webhook-mailer at python.org
Sun May 29 13:18:56 EDT 2022


https://github.com/python/cpython/commit/61e008a4ab0b444342f9186efb57207d6fb05092
commit: 61e008a4ab0b444342f9186efb57207d6fb05092
branch: main
author: Will Hawkins <8715530+hawkinsw at users.noreply.github.com>
committer: vstinner <vstinner at python.org>
date: 2022-05-29T19:18:52+02:00
summary:

gh-93244: Document Py_PRINT_RAW in PyObject_Print() comment (93245)

files:
M Include/abstract.h

diff --git a/Include/abstract.h b/Include/abstract.h
index 9e06fbbb74913..197b20e4f23b7 100644
--- a/Include/abstract.h
+++ b/Include/abstract.h
@@ -14,9 +14,9 @@ extern "C" {
 
    Print an object 'o' on file 'fp'.  Returns -1 on error. The flags argument
    is used to enable certain printing options. The only option currently
-   supported is Py_Print_RAW.
-
-   (What should be said about Py_Print_RAW?). */
+   supported is Py_PRINT_RAW. By default (flags=0), PyObject_Print() formats
+   the object by calling PyObject_Repr(). If flags equals to Py_PRINT_RAW, it
+   formats the object by calling PyObject_Str(). */
 
 
 /* Implemented elsewhere:



More information about the Python-checkins mailing list