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 pakal
Recipients ajaksu2, amaury.forgeotdarc, giampaolo.rodola, pakal, pitrou, vstinner
Date 2010-04-29.19:50:31
SpamBayes Score 0.003154353
Marked as misclassified No
Message-id <1272570635.56.0.544978624012.issue7865@psf.upfronthosting.co.za>
In-reply-to
Content
Here is a code/test patch which *should* fix the multiple close() case, and ensure flush() raise an error on closed file. 

All IO test suites pass on my win32 (except test_largefile that I skip due to lack of hdd space).


I've noticed that the detach() semantic was quite different between _pyio and _io, by the way: C code raises valueerror when we try to access the stream after detaching it, whereas python lets attribute errors be raised. But maybe this is not so important, as these are programming errors anyway.

One thing I'm still wondering : why couldn't we obtain these C extension by cythonizing _pyio ? Are there features that cython lacks, or optimization considerations I'm not aware of ? Cython-generated extensions seem soooo easier to maintain...
History
Date User Action Args
2010-04-29 19:50:37pakalsetrecipients: + pakal, amaury.forgeotdarc, pitrou, vstinner, giampaolo.rodola, ajaksu2
2010-04-29 19:50:35pakalsetmessageid: <1272570635.56.0.544978624012.issue7865@psf.upfronthosting.co.za>
2010-04-29 19:50:33pakallinkissue7865 messages
2010-04-29 19:50:32pakalcreate