8000 gh-93244: Document Py_PRINT_RAW in PyObject_Print() comment (93245) · coderanger/cpython@61e008a · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Lines changed: 3 additions & 3 deletions
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)
0