This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tusharsadhwani
Recipients BTaskaya, lys.nikolaou, pablogsal, tusharsadhwani
Date 2022-01-25.17:03:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643130231.49.0.782190200951.issue46521@roundup.psfhosted.org>
In-reply-to
Content
You're right. There was another bug in my code that was causing the SyntaxError to not show up at all, sorry about that.

Can you help me figure out why this bug doesn't show up in the normal Python REPL?

```
>>> abc def '''
  File "<stdin>", line 1
    abc def '''
        ^^^
SyntaxError: invalid syntax
```

I could then use whatever logic the REPL itself uses instead of relying on `code.compile_command()`, because my requirement is to detect if a code can be incomplete Python code, without ever compiling it.
History
Date User Action Args
2022-01-25 17:03:51tusharsadhwanisetrecipients: + tusharsadhwani, lys.nikolaou, pablogsal, BTaskaya
2022-01-25 17:03:51tusharsadhwanisetmessageid: <1643130231.49.0.782190200951.issue46521@roundup.psfhosted.org>
2022-01-25 17:03:51tusharsadhwanilinkissue46521 messages
2022-01-25 17:03:51tusharsadhwanicreate