Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5d8a6c8

Browse files
committed
Fixes to the PyFile_FromFd() doc, by Renato Cunha.
1 parent e41a19e commit 5d8a6c8

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Doc/c-api/file.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ change in future releases of Python. The ``PyFile_`` APIs are a wrapper over
1313
the :mod:`io` module.
1414

1515

16-
.. cfunction:: PyFile_FromFd(int fd, char *name, char *mode, int buffering, char *encoding, char *newline, int closefd)
16+
.. cfunction:: PyFile_FromFd(int fd, char *name, char *mode, int buffering, char *encoding, char *errors, char *newline, int closefd)
1717

1818
Create a new :ctype:`PyFileObject` from the file descriptor of an already
19-
opened file *fd*. The arguments *name*, *encoding* and *newline* can be
20-
*NULL* to use the defaults; *buffering* can be *-1* to use the default.
21-
Return *NULL* on failure.
19+
opened file *fd*. The arguments *name*, *encoding*, *errors* and *newline*
20+
can be *NULL* to use the defaults; *buffering* can be *-1* to use the
21+
default. Return *NULL* on failure. For a more comprehensive description of
22+
the arguments, please refer to the :func:`io.open` function documentation.
2223

2324
.. warning::
2425

0 commit comments

Comments
 (0)