Pablo Galindo Salgado <pablog...@gmail.com> added the comment:

This is due to the fact that the new parser doesn't detect the syntax error of 
"abc def" after it has parsed the full text, but before that happens, the 
tokenizer has detected a problem (the ''' is not closed) and this is considered 
incomplete output for code (the same if you do code.compile_command('"""')).

Unfortunately, this is not easy to fix once we have the tokenizer error in 
place so I am afraid we probably need to close this as "won't fix", unless 
someone has a good idea on how to accommodate for this case.

----------
nosy: +BTaskaya, pablogsal

_______________________________________
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