Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

Indeed, there is a bug in Python. It can be reproduced without lxml:

$ ./python -c "raise SyntaxError('error', (b'file', 1, 2, 'text'))"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
python: Objects/unicodeobject.c:397: _PyUnicode_CheckConsistency: Assertion 
`PyUnicode_Check(op)' failed.
Aborted (core dumped)

It has been fixed in 3.7+ by issue37467, but the fix was not backported to 3.6.

----------
components: +Interpreter Core
nosy: +vstinner
resolution: third party -> 
stage: resolved -> 
status: closed -> open
versions:  -Python 3.7

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

Reply via email to