This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients kuraga, serhiy.storchaka, vstinner
Date 2019-09-06.09:23:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1567761790.18.0.163661887643.issue38042@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-09-06 09:23:10serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, kuraga
2019-09-06 09:23:10serhiy.storchakasetmessageid: <1567761790.18.0.163661887643.issue38042@roundup.psfhosted.org>
2019-09-06 09:23:10serhiy.storchakalinkissue38042 messages
2019-09-06 09:23:10serhiy.storchakacreate