New submission from Amaury Forgeot d'Arc <[EMAIL PROTECTED]>: >>> 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. ---------- messages: 75346 nosy: amaury.forgeotdarc severity: normal status: open title: io.FileIO('foo', 'rt') prints a RuntimeWarning versions: Python 2.6, Python 3.0 _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4237> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com