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 pitrou
Recipients ajaksu2, amaury.forgeotdarc, pakal, pitrou, vstinner
Date 2010-04-28.11:22:18
SpamBayes Score 0.00044213003
Marked as misclassified No
Message-id <1272453874.3485.10.camel@localhost>
In-reply-to <1272437393.71.0.76576624242.issue7865@psf.upfronthosting.co.za>
Content
> I'm quite surprised it wasn't already covered by the test suite :S

Probably an oversight. Do you want to add some tests?

> Should a flush on a closed stream fail (at the moment sometimes it
> does, sometimes doesn't) ?

It probably should, yes.

> Why is sometimes ValueError used when I'd rather expect an IOError ?

Because it's not an IO error at all. No I/O occurs. You are just using
the file wrongly (or the wrong file), hence the ValueError.
History
Date User Action Args
2010-04-28 11:22:21pitrousetrecipients: + pitrou, amaury.forgeotdarc, vstinner, ajaksu2, pakal
2010-04-28 11:22:18pitroulinkissue7865 messages
2010-04-28 11:22:18pitroucreate