question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SyntaxWarnings with Python 3.8

See original GitHub issue

Description

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:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
thorstenkampecommented, Sep 3, 2019

pgspecial 1.11.6 and 1.11.7 have been released in quick succession. I can’t reproduce the issue anymore.

0reactions
amjithcommented, Sep 2, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found