[Python-Dev] Call for prudence about PEP-572

Chris Angelico rosuav at gmail.com
Sat Jul 7 09:13:47 EDT 2018


On Sat, Jul 7, 2018 at 11:09 PM, Giampaolo Rodola' <g.rodola at gmail.com> wrote:
> To me this looks like the perfect example of where this functionality can be
> abused. Also, I'm not clear what PEP-572 intend to do about "all other
> places". E.g. should these cases be allowed? (IMO no)
>
>     >>> yield x := 3
>     >>> assert y := 3

Special cases aren't special enough to break the rules.

Can we stop trying to nerf this into complexity, please?

ChrisA


More information about the Python-Dev mailing list