osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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