This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients eckhardt, pitrou, vstinner
Date 2009-01-05.13:42:33
SpamBayes Score 0.0040622875
Marked as misclassified No
Message-id <1231162954.15.0.715946540539.issue4841@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2009-01-05 13:42:34vstinnersetrecipients: + vstinner, pitrou, eckhardt
2009-01-05 13:42:34vstinnersetmessageid: <1231162954.15.0.715946540539.issue4841@psf.upfronthosting.co.za>
2009-01-05 13:42:33vstinnerlinkissue4841 messages
2009-01-05 13:42:33vstinnercreate