mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
#7417: add signature to open() docstring.
This commit is contained in:
parent
e5692cdaae
commit
5e8f6d17e9
1 changed files with 3 additions and 0 deletions
|
|
@ -176,6 +176,9 @@ PyObject *PyExc_BlockingIOError = (PyObject *)&_PyExc_BlockingIOError;
|
||||||
* The main open() function
|
* The main open() function
|
||||||
*/
|
*/
|
||||||
PyDoc_STRVAR(open_doc,
|
PyDoc_STRVAR(open_doc,
|
||||||
|
"open(file, mode='r', buffering=None, encoding=None,\n"
|
||||||
|
" errors=None, newline=None, closefd=True) -> file object\n"
|
||||||
|
"\n"
|
||||||
"Open file and return a stream. Raise IOError upon failure.\n"
|
"Open file and return a stream. Raise IOError upon failure.\n"
|
||||||
"\n"
|
"\n"
|
||||||
"file is either a text or byte string giving the name (and the path\n"
|
"file is either a text or byte string giving the name (and the path\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue