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 amaury.forgeotdarc
Recipients amaury.forgeotdarc
Date 2008-10-30.01:02:17
SpamBayes Score 1.0495621e-06
Marked as misclassified No
Message-id <1225328538.91.0.279296861257.issue4237@psf.upfronthosting.co.za>
In-reply-to
Content
>>> import io
>>> io.FileIO('foo', 'rt')
__main__:1: RuntimeWarning: Trying to close unclosable fd!
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: invalid mode: rt

The ValueError is expected, but the warning is not.
This happens on file deallocation: the file object is in an invalid 
state.
History
Date User Action Args
2008-10-30 01:02:19amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc
2008-10-30 01:02:18amaury.forgeotdarcsetmessageid: <1225328538.91.0.279296861257.issue4237@psf.upfronthosting.co.za>
2008-10-30 01:02:18amaury.forgeotdarclinkissue4237 messages
2008-10-30 01:02:17amaury.forgeotdarccreate