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
It seems that Python 3.12 has made those Syntax Warnings.
Python 3.11
Python 3.11.10 (main, Sep 7 2024, 01:03:31) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> test = "\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"
Python 3.12
Python 3.12.7 (main, Oct 1 2024, 02:05:46) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> test = "\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"
<stdin>:1: SyntaxWarning: invalid escape sequence '\d'
Perhaps those should be marked as regular expressions like so:
Python 3.12.7 (main, Oct 1 2024, 02:05:46) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> test = r"\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"
The text was updated successfully, but these errors were encountered:
StanBorbatTR
changed the title
SyntaxWarning: invalid escape sequence '\d'
SyntaxWarning: invalid escape sequence
Jan 13, 2025
I get warnings when initializing 3.133.0 using Python 3.12. The messages are below:
It seems that Python 3.12 has made those Syntax Warnings.
Python 3.11
Python 3.12
Perhaps those should be marked as regular expressions like so:
The text was updated successfully, but these errors were encountered: