Message411633
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. |
|
Date |
User |
Action |
Args |
2022-01-25 17:03:51 | tusharsadhwani | set | recipients:
+ tusharsadhwani, lys.nikolaou, pablogsal, BTaskaya |
2022-01-25 17:03:51 | tusharsadhwani | set | messageid: <1643130231.49.0.782190200951.issue46521@roundup.psfhosted.org> |
2022-01-25 17:03:51 | tusharsadhwani | link | issue46521 messages |
2022-01-25 17:03:51 | tusharsadhwani | create | |
|