[issue5677] Serious interpreter crash and/or arbitrary memory leak using .read() on writable file

Antoine Pitrou report at bugs.python.org
Thu Feb 4 13:41:29 CET 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

Hmm, test_file.py is for the new IO library (backported from 3.x). You should use test_file2k.py for tests against the 2.x file object.

Also, readinto() should take something such as a bytearray() as argument, not a string.

----------
versions: +Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5677>
_______________________________________


More information about the Python-bugs-list mailing list