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.
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 @@
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 @@
"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)