> 
> On the third hand, requiring parentheses all the time would also feel
> strained:
> 
>     while m := someregexp.match(somestring):
> 
> is already impossible to misread.
> 
> Annoying ;-)

While adding parens to that would be superfluous for the reader of the
module, as a tradeoff for requiring explicitness instead of doing the
implicitly wrong (depending on context) thing is probably worth it.

_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to