cpython/Objects
Gustavo Niemeyer 786ddb29c9 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.
2002-12-16 18:12:53 +00:00
..
.cvsignore
abstract.c Change issubclass() so that recursive tuples (directly or indirectly 2002-12-12 19:14:08 +00:00
boolobject.c Make more functions static 2002-08-06 22:12:52 +00:00
bufferobject.c Call me anal, but there was a particular phrase that was speading to 2002-08-19 19:26:42 +00:00
cellobject.c
classobject.c Change issubclass() so that recursive tuples (directly or indirectly 2002-12-12 19:14:08 +00:00
cobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
complexobject.c complex() was the only numeric constructor that created a new instance 2002-08-29 14:22:51 +00:00
descrobject.c SF 548651: Fix the METH_CLASS implementation. 2002-12-09 22:56:13 +00:00
dictobject.c Constify char* API. Fixes #651363. 2.2 candidate. 2002-12-11 13:21:12 +00:00
enumobject.c Remove the next() method -- one is supplied automatically by 2002-07-16 21:02:42 +00:00
fileobject.c Fixed bug 2002-12-16 18:12:53 +00:00
floatobject.c float_int(): Some systems raise an exception if a double is cast to 2002-11-21 22:26:37 +00:00
frameobject.c A slight change to SET_LINENO-less tracing. 2002-09-11 15:36:32 +00:00
funcobject.c Extend function() to support an optional closure argument. 2002-07-11 18:30:27 +00:00
intobject.c Change int() so that passing a string, unicode, float or long argument 2002-11-19 20:49:15 +00:00
iterobject.c Squash a few calls to the hideously expensive PyObject_CallObject(o,a) 2002-08-16 17:01:09 +00:00
listobject.c The final tweaks before closing 2002-12-05 21:32:32 +00:00
listsort.txt Fixed new typos, added a little info about ~sort versus "hint"s. 2002-08-10 07:04:01 +00:00
longobject.c Change int() so that passing a string, unicode, float or long argument 2002-11-19 20:49:15 +00:00
methodobject.c
moduleobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
object.c Remove _Py_ResetReferences. Fixes bug #529750 "Circular reference makes 2002-11-17 17:52:44 +00:00
obmalloc.c Remove MALLOC_ZERO_RETURNS_NULL. 2002-11-23 09:13:40 +00:00
rangeobject.c Update comments about the performance of xrange(). 2002-12-11 07:14:03 +00:00
sliceobject.c Handle really big steps in extended slices. 2002-11-06 15:17:32 +00:00
stringobject.c Patch #650653: Raise always value error if the table is not 256 bytes long. 2002-12-12 20:03:19 +00:00
structseq.c Add n_unnamed_fields into the type. 2002-10-16 19:10:03 +00:00
tupleobject.c Add checks for size overflow on list*n, list+list, tuple+tuple. 2002-10-11 21:05:56 +00:00
typeobject.c Punctuation fix. 2002-12-14 17:17:56 +00:00
unicodectype.c Make lower/upper/title work for non-BMP characters. 2002-10-18 16:40:36 +00:00
unicodeobject.c Add nb_remainder (i.e. __mod__) slot to unicode type. Fixes SF bug #615506. 2002-11-18 16:10:18 +00:00
unicodetype_db.h Add unidata_version. Bump generator version number. 2002-11-25 09:13:37 +00:00
weakrefobject.c Add support for the iterator protocol to weakref proxy objects. 2002-08-09 18:34:16 +00:00
xxobject.c staticforward bites the dust. 2002-07-17 16:30:39 +00:00