Serhiy Storchaka added the comment:

Could you backport full patch, with tests? And compile() is affected too:

>>> compile(buffer("123\0test", 1, 2), '', 'exec')
<code object <module> at 0xb70c5800, file "", line 1>
>>> compile(buffer("123test", 1, 2), '', 'exec')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: compile() expected string without null bytes

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25678>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to