]> granicus.if.org Git - python/commitdiff
#7417: add signature to open() docstring.
authorGeorg Brandl <georg@python.org>
Wed, 23 Dec 2009 10:30:45 +0000 (10:30 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 23 Dec 2009 10:30:45 +0000 (10:30 +0000)
Modules/_io/_iomodule.c

index 14a4356bc7badc35b5dd940958b1f67cf324023a..e20a2f6e44b005c181e1748c3c2b6e2aad6d7451 100644 (file)
@@ -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"