[issue31285] a SystemError and an assertion failure in warnings.warn_explicit()
Serhiy Storchaka
report at bugs.python.org
Fri Sep 29 03:59:55 EDT 2017
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
I didn't check. I supposed that the other code can support unicode by
implicitly converting it to str. But now I see that show_warning() uses
PyString_AS_STRING() and therefore supports only str. I agree, using
str.splitlines() would be correct solution.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31285>
_______________________________________
More information about the Python-bugs-list
mailing list