You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
xml Python and C version ParseError difference #158166
At all call sites, value is an exception, so effectively the first argument is always an exception. Note that ParseError is a sub-class of SyntaxError.
In the C-version, the first agument is always cast to a str.
I encountered this bug through PyPy that use the Python version of lxml.
Activity
Merge branch 'main' into pythongh-158166-xml-parseerror-difference
alexprengere commentedon Sep 29, 2026
For the record the equivalent PR hsa been merged into PyPy 😄 pypy/pypy@78db966