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

>  I saw that unclosed parentheses' special error are checked in the same 
> place. 

Just to clarify: unclosed parentheses is a tokenizer error, not a parser error 
and this is handled by checking the tokenize status when it has already failed. 
The reason is done after the failed parser is because our tokenizer is made 
lazy and to check for unclosed pantheses you need to fully parse everything, 
and this needs a driver. There is no semantic analysis here, just checking the 
lexer status: that's why is handled separately

----------

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

Reply via email to