[issue35224] PEP 572: Assignment Expressions

Guido van Rossum report at bugs.python.org
Mon Aug 5 00:15:06 EDT 2019


Guido van Rossum <guido at python.org> added the comment:

Thanks for catching that this was still incomplete.

> Also, a major procedural note: it is NOT OK to merge a PEP implementation that completely ignores parts of the PEP. The merged tests are actively forcing NON-compliance with the accepted PEP, since they're requiring implementations to accept code that the PEP explicitly states should be disallowed.

It was known the implementation was unfinished in this respect, but it was deemed better to merge what we had lest the work be lost in merge conflicts, and iterate in later betas. I've written some code that uses the walrus operator and have found it quite solid. The early existence of an implementation (albeit incomplete) has also helped get support for this in mypy (https://github.com/python/mypy/pull/6899).

I don't recall being aware that there were tests that specifically *checked* that the implementation was incomplete, and that's obviously wrong.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35224>
_______________________________________


More information about the Python-bugs-list mailing list