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

Skip to content

Commit 5e8f6d1

Browse files
committed
#7417: add signature to open() docstring.
1 parent e5692cd commit 5e8f6d1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Modules/_io/_iomodule.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ PyObject *PyExc_BlockingIOError = (PyObject *)&_PyExc_BlockingIOError;
176176
* The main open() function
177177
*/
178178
PyDoc_STRVAR(open_doc,
179+
"open(file, mode='r', buffering=None, encoding=None,\n"
180+
" errors=None, newline=None, closefd=True) -> file object\n"
181+
"\n"
179182
"Open file and return a stream. Raise IOError upon failure.\n"
180183
"\n"
181184
"file is either a text or byte string giving the name (and the path\n"

0 commit comments

Comments
 (0)