> 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
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to