[issue31285] a SystemError and an assertion failure in warnings.warn_explicit()

Serhiy Storchaka report at bugs.python.org
Thu Sep 28 11:59:09 EDT 2017


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

PyUnicode_Splitlines() cannot be used here in 2.7, because the source is likely a 8-bit string.

Actually I'm not sure this issue is worth to be fixed in 2.7. The fix would be different from 3.x and more complex.

----------
versions: +Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31285>
_______________________________________


More information about the Python-bugs-list mailing list