From: Georg Brandl Date: Wed, 23 Dec 2009 10:30:45 +0000 (+0000) Subject: #7417: add signature to open() docstring. X-Git-Tag: v3.2a1~1979 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e8f6d17e9d63bf2e53b4e51808d1cc209a6054c;p=thirdparty%2FPython%2Fcpython.git #7417: add signature to open() docstring. --- diff --git a/Modules/_io/_iomodule.c b/Modules/_io/_iomodule.c index 14a4356bc7ba..e20a2f6e44b0 100644 --- a/Modules/_io/_iomodule.c +++ b/Modules/_io/_iomodule.c @@ -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"