summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-09-13 21:49:44 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-09-13 21:49:44 (GMT)
commit742dfd6f178c3880248c32d64322e2cff8cea23f (patch)
tree97c3cafb22f1d6634bbce7bf182e28eb4616729a /Objects
parent4b7625ee83d2063c6ad0a82b28ff7362350393c8 (diff)
downloadcpython-742dfd6f178c3880248c32d64322e2cff8cea23f.zip
cpython-742dfd6f178c3880248c32d64322e2cff8cea23f.tar.gz
cpython-742dfd6f178c3880248c32d64322e2cff8cea23f.tar.bz2
Get rid of builtin_open() entirely (the C code and docstring, not the
builtin function); Guido pointed out that it could be just another name in the __builtin__ dict for the file constructor now.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/fileobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index b373024..578b6f0 100644
--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -1359,7 +1359,6 @@ file_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
return f;
}
-/* XXX Keep this in synch with open_doc in bltinmodule.c. */
static char file_doc[] =
"file(name[, mode[, buffering]]) -> file object\n"
"\n"
@@ -1369,7 +1368,8 @@ static char file_doc[] =
"opened for writing. Add a 'b' to the mode for binary files.\n"
"Add a '+' to the mode to allow simultaneous reading and writing.\n"
"If the buffering argument is given, 0 means unbuffered, 1 means line\n"
-"buffered, and larger numbers specify the buffer size.";
+"buffered, and larger numbers specify the buffer size.\n"
+"Note: open() is an alias for file().\n";
PyTypeObject PyFile_Type = {
PyObject_HEAD_INIT(&PyType_Type)