Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:

IIRC there was a debate over allowing top level assignment expression without 
parentheses in original PEP 572 issue and most of the docs and examples follow 
using parentheses to avoid this confusion. I just noticed while reading the PEP 
that list comprehension case is not covered in the exceptional cases section 
that focused mostly on unparenthesized assignment expressions. If this will not 
be supported maybe this also could be added to PEP there since PEP serves as 
reference docs in most cases. The restriction can be lifted in future version 
if there is a simple way to fix this where this can be reopened.

https://www.python.org/dev/peps/pep-0572/#exceptional-cases

----------
nosy: +xtreak

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

Reply via email to