[Python-checkins] python/dist/src/Misc NEWS,1.562,1.563
niemeyer@users.sourceforge.net
niemeyer@users.sourceforge.net
2002年12月16日 10:13:25 -0800
Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1:/tmp/cvs-serv643/Misc
Modified Files:
NEWS
Log Message:
Fixed bug
[#521782] unreliable file.read() error handling
* Objects/fileobject.c
(file_read): Clear errors before leaving the loop in all situations,
and also check if some data was read before exiting the loop with an
EWOULDBLOCK exception.
* Doc/lib/libstdtypes.tex
* Objects/fileobject.c
Document that sometimes a read() operation can return less data than
what the user asked, if running in non-blocking mode.
* Misc/NEWS
Document the fix.
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.562
retrieving revision 1.563
diff -C2 -d -r1.562 -r1.563
*** NEWS 16 Dec 2002 14:09:22 -0000 1.562
--- NEWS 16 Dec 2002 18:12:47 -0000 1.563
***************
*** 336,339 ****
--- 336,342 ----
evaluate f1 first.
+ - Fixed bug #521782: when a file was in non-blocking mode, file.read()
+ could silently lose data or wrongly throw an unknown error.
+
Extension modules
-----------------