[Python-checkins] CVS: python/dist/src/Objects object.c,2.60,2.61

Guido van Rossum guido@cnri.reston.va.us
2000年1月12日 11:29:01 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Objects
In directory eric:/projects/python/develop/guido/src/Objects
Modified Files:
	object.c 
Log Message:
On Linux, one sometimes sees spurious errors after interrupting
previous output. Call clearerr() to prevent past errors affecting our
ferror() test later, in PyObject_Print(). Suggested by Marc Lemburg.
Index: object.c
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Objects/object.c,v
retrieving revision 2.60
retrieving revision 2.61
diff -C2 -r2.60 -r2.61
*** object.c	1998年07月21日 21:56:41	2.60
--- object.c	2000年01月12日 16:28:58	2.61
***************
*** 169,172 ****
--- 169,173 ----
 	}
 #endif
+ 	clearerr(fp); /* Clear any previous error condition */
 	if (op == NULL) {
 		fprintf(fp, "<nil>");

AltStyle によって変換されたページ (->オリジナル) /