SyntaxWarnings with Python 3.8
See original GitHub issueDescription
SyntaxWarnings with Python 3.8
Your environment
- Windows 10, Python 3.8b3
- pgcli 2.1.1.
c:\python\lib\site-packages\pgspecial\dbcommands.py:1504: SyntaxWarning: invalid escape sequence \d
status.append("Number of child tables: %d (Use \d+ to list"
c:\python\lib\site-packages\pgspecial\main.py:58: SyntaxWarning: invalid escape sequence \p
'A limited version of traditional \pset', arg_type=PARSED_QUERY)
c:\python\lib\site-packages\pgspecial\main.py:127: SyntaxWarning: invalid escape sequence \h
message += "\nTry \h with no arguments to see available help."
c:\python\lib\site-packages\pgspecial\iocommands.py:21: SyntaxWarning: invalid escape sequence \e
"""
c:\python\lib\site-packages\pgspecial\iocommands.py:50: SyntaxWarning: invalid escape sequence \s
match = re.match("(.*?)[\s]*\\\\watch (\d+);?$", command)
c:\python\lib\site-packages\pgspecial\iocommands.py:65: SyntaxWarning: invalid escape sequence \e
pattern = re.compile('(^\\\e|\\\e$)')
c:\python\lib\site-packages\pgspecial\iocommands.py:176: SyntaxWarning: invalid escape sequence \d
match = re.search('\\$\d+', query)
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Why does Python log a SyntaxWarning for 'is' with literals?
The compiler now produces a SyntaxWarning when identity checks ( is and is not ) are used with certain types of literals (e.g....
Read more >Issue 43151: SyntaxWarning for 'is <literal>' - Python tracker
Thank you for your responses. I understand the difference between == and "is" and the intentional change in 3.8.
Read more >Warnings About Dangerous Syntax - Real Python
Python 3.8 has a couple of additions to SyntaxWarning. A SyntaxWarning is different than a SyntaxError. A SyntaxWarning is warning about dubious syntax....
Read more >python 3.8 SyntaxWarning: "is" with a literal. Did you mean "=="?
Hi there - I searched a bit for this but couldn't find it. This is a warning generated by Python 3.8 and I...
Read more >Syntax warning when using python 3.8 - Jetson AGX Xavier
Hi @WayneWWW , I am using Ubuntu 20.04 and my python version is 3.8.10. While flashing i am seeing this warning prints, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
pgspecial
1.11.6 and 1.11.7 have been released in quick succession. I can’t reproduce the issue anymore.@thorstenkampe Can you open the PR and tag some lines for me to take a look?
I’ll try to get python 3.8 installed and have a look.