Tushar Sadhwani <tushar.sadhwani...@gmail.com> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46521>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to