mirror of
https://github.com/python/cpython.git
synced 2025-01-21 07:55:16 +08:00
#7417: add signature to open() docstring.
This commit is contained in:
parent
e5692cdaae
commit
5e8f6d17e9
@ -176,6 +176,9 @@ PyObject *PyExc_BlockingIOError = (PyObject *)&_PyExc_BlockingIOError;
|
||||
* The main open() function
|
||||
*/
|
||||
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"
|
||||
"\n"
|
||||
"file is either a text or byte string giving the name (and the path\n"
|
||||
|
Loading…
Reference in New Issue
Block a user