Skip to content

Commit 61e008a

Browse files
authored
pythongh-93244: Document Py_PRINT_RAW in PyObject_Print() comment (93245)
1 parent ace6607 commit 61e008a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Include/abstract.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ extern "C" {
1414
1515
Print an object 'o' on file 'fp'. Returns -1 on error. The flags argument
1616
is used to enable certain printing options. The only option currently
17-
supported is Py_Print_RAW.
18-
19-
(What should be said about Py_Print_RAW?). */
17+
supported is Py_PRINT_RAW. By default (flags=0), PyObject_Print() formats
18+
the object by calling PyObject_Repr(). If flags equals to Py_PRINT_RAW, it
19+
formats the object by calling PyObject_Str(). */
2020

2121

2222
/* Implemented elsewhere:

0 commit comments

Comments
 (0)