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
This could be the reason tests are failing for Python 3.12
Not entirely. This is the risk of using non-public functions. In Python 3.12, an optimization was made to re.sub() (see python/cpython#91524) which involved a change in the shape of the return value of parse_template().
PyDelphin currently uses
sre_parse.parse_template()
for parsing the capturing groups of regular expressions:pydelphin/delphin/repp.py
Lines 634 to 636 in 33415cf
These are deprecated as of 3.11:
python/cpython#91308
A stopgap solution is to change the import from
sre_parse
tore._parser
, similar to what Lark did: lark-parser/lark@1b62465This could be the reason tests are failing for Python 3.12.
The text was updated successfully, but these errors were encountered: