From 5e8f6d17e9d63bf2e53b4e51808d1cc209a6054c Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 23 Dec 2009 10:30:45 +0000 Subject: #7417: add signature to open() docstring. --- Modules/_io/_iomodule.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Modules/_io/_iomodule.c b/Modules/_io/_iomodule.c index 14a4356..e20a2f6 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" -- cgit v0.12