[Python-checkins] python/dist/src/Objects fileobject.c,2.176,2.177

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Sat, 03 May 2003 21:16:54 -0700


Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1:/tmp/cvs-serv30029/Objects

Modified Files:
	fileobject.c 
Log Message:
Somewhere along the way, the softspace attr of file objects became read-
only.  Repaired, and added new tests to test_file.py.


Index: fileobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/fileobject.c,v
retrieving revision 2.176
retrieving revision 2.177
diff -C2 -d -r2.176 -r2.177
*** fileobject.c	9 Feb 2003 01:10:02 -0000	2.176
--- fileobject.c	4 May 2003 04:16:52 -0000	2.177
***************
*** 1963,1967 ****
  	0,					/* tp_str */
  	PyObject_GenericGetAttr,		/* tp_getattro */
! 	0,					/* tp_setattro */
  	0,					/* tp_as_buffer */
  	Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
--- 1963,1968 ----
  	0,					/* tp_str */
  	PyObject_GenericGetAttr,		/* tp_getattro */
! 	/* softspace is writable:  we must supply tp_setattro */
! 	PyObject_GenericSetAttr,		/* tp_setattro */
  	0,					/* tp_as_buffer */
  	Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */