From: Will Hawkins <8715530+hawkinsw@users.noreply.github.com> Date: Sun, 29 May 2022 17:18:52 +0000 (-0400) Subject: gh-93244: Document Py_PRINT_RAW in PyObject_Print() comment (93245) X-Git-Tag: v3.12.0a1~1396 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=61e008a4ab0b444342f9186efb57207d6fb05092;p=thirdparty%2FPython%2Fcpython.git gh-93244: Document Py_PRINT_RAW in PyObject_Print() comment (93245) --- diff --git a/Include/abstract.h b/Include/abstract.h index 9e06fbbb7491..197b20e4f23b 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: