]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-93244: Document Py_PRINT_RAW in PyObject_Print() comment (93245)
authorWill Hawkins <8715530+hawkinsw@users.noreply.github.com>
Sun, 29 May 2022 17:18:52 +0000 (13:18 -0400)
committerGitHub <noreply@github.com>
Sun, 29 May 2022 17:18:52 +0000 (19:18 +0200)
Include/abstract.h

index 9e06fbbb749138f1846b80655844132452ac2034..197b20e4f23b78887d80b07f26322d0af3e6fbee 100644 (file)
@@ -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: