mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
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.
This commit is contained in:
parent
4b7625ee83
commit
742dfd6f17
2 changed files with 5 additions and 22 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue