[issue38042] Crash on double list(lxml.etree.iterparse(f))
Serhiy Storchaka
report at bugs.python.org
Fri Sep 6 05:23:10 EDT 2019
Serhiy Storchaka <storchaka+cpython at 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 <report at bugs.python.org>
<https://bugs.python.org/issue38042>
_______________________________________
More information about the Python-bugs-list
mailing list