[Python-checkins] CVS: python/dist/src/Objects fileobject.c,2.124,2.125
Tim Peters
tim_one@users.sourceforge.net
Thu, 13 Sep 2001 14:49:46 -0700
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv14630/python/Objects
Modified Files:
fileobject.c
Log Message:
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.
Index: fileobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/fileobject.c,v
retrieving revision 2.124
retrieving revision 2.125
diff -C2 -d -r2.124 -r2.125
*** fileobject.c 2001/09/13 21:01:29 2.124
--- fileobject.c 2001/09/13 21:49:44 2.125
***************
*** 1360,1364 ****
}
- /* XXX Keep this in synch with open_doc in bltinmodule.c. */
static char file_doc[] =
"file(name[, mode[, buffering]]) -> file object\n"
--- 1360,1363 ----
***************
*** 1370,1374 ****
"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.";
PyTypeObject PyFile_Type = {
--- 1369,1374 ----
"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.\n"
! "Note: open() is an alias for file().\n";
PyTypeObject PyFile_Type = {