Skip to content

Commit 8f2e924

Browse files
committed
Document PyFile_NewStdPrinter() and PyStdPrinter_Type
1 parent 0d0ca9a commit 8f2e924

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Doc/c-api/file.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,15 @@ the :mod:`io` APIs instead.
131131
132132
Write string *s* to file object *p*. Return ``0`` on success or ``-1`` on
133133
failure; the appropriate exception will be set.
134+
135+
136+
Deprecated API
137+
^^^^^^^^^^^^^^
138+
139+
.. c:function:: PyObject *PyFile_NewStdPrinter(void)
140+
141+
.. c:var:: PyTypeObject PyStdPrinter_Type
142+
143+
These are :term:`soft deprecated` APIs that were included in Python's C API
144+
by mistake. They are documented solely for completeness; use other
145+
``PyFile*`` APIs instead.

0 commit comments

Comments
 (0)