Message79141
In Python 3.x, internal_close() returns -1 on error (if close()
returns a negative value) and 0 on success.
In Python 2.x, internal_closes() returns the errno value of close() on
error, or 0 on success. fileio_close() tests if the error value is
negative instead of if it's not null or at least it's strict positive.
Python 3.x code looks better. I tried to backport the internal_close()
changes but I get a segfault on PyErr_WriteUnraisable() :-p (close()
error in fileio_dealloc) |
|
Date |
User |
Action |
Args |
2009-01-05 13:42:34 | vstinner | set | recipients:
+ vstinner, pitrou, eckhardt |
2009-01-05 13:42:34 | vstinner | set | messageid: <1231162954.15.0.715946540539.issue4841@psf.upfronthosting.co.za> |
2009-01-05 13:42:33 | vstinner | link | issue4841 messages |
2009-01-05 13:42:33 | vstinner | create | |
|