pydata / numexpr

Fast numerical array expression evaluator for Python, NumPy, Pandas, PyTables and more
https://numexpr.readthedocs.io/en/latest/user_guide.html
MIT License
2.23k stars 210 forks source link

Use r"" to avoid warning about unknown escapes #446

Closed keszybz closed 1 year ago

robbmcleod commented 1 year ago

What versions of Python is this occurring in?

keszybz commented 1 year ago

3.12.0b4 (python3-3.12.0~b4-3.fc39.x86_64)

ChunHuiWangFN commented 1 year ago

yea, many packages out there have escaped character warnings for me starting at python 3.11 which devs have been correcting. Here's my output for this one.

/opt/venv/lib/python3.11/site-packages/numexpr/necompiler.py:264: DeprecationWarning: invalid escape sequence '\;' _forbidden_re = re.compile('[\;[\:]|_|.[abcdefghjklmnopqstuvwxyzA-Z]')

robbmcleod commented 1 year ago

Ok, 3.11 is still broken for my work projects so I haven't moved to it yet myself.