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

Antoine Pitrou report at bugs.python.org
Fri Feb 5 14:55:43 CET 2010


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

Oh and the following line shouldn't be needed:

data = b'xxx' if 'b' in mode else u'xxx'

Since old-style file objects always take bytestrings (it's harmless, though, because the unicode string will be implicitly converted).

----------

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


More information about the Python-bugs-list mailing list