Message351239
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. |
|
Date |
User |
Action |
Args |
2019-09-06 09:23:10 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, kuraga |
2019-09-06 09:23:10 | serhiy.storchaka | set | messageid: <1567761790.18.0.163661887643.issue38042@roundup.psfhosted.org> |
2019-09-06 09:23:10 | serhiy.storchaka | link | issue38042 messages |
2019-09-06 09:23:10 | serhiy.storchaka | create | |
|