[Python-Dev] PEP 572: Assignment Expressions (original) (raw)
Jeroen Demeyer J.Demeyer at UGent.be
Wed Apr 18 01:49:47 EDT 2018
- Previous message (by thread): [Python-Dev] PEP 572: Assignment Expressions
- Next message (by thread): [Python-Dev] PEP 572: Assignment Expressions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2018-04-18 02:13, Chris Angelico wrote:
I'm much happier promoting a full-featured assignment expression than something that can only be used in a limited set of situations. Is there reason to believe that extensions to the := operator might take it in a different direction? If not, there's very little to lose by permitting any assignment target, and then letting style guides frown on it if they like.
This is a very good argument: why artificially restrict the operator?
This reminds me of the artificial restriction of decorator syntax (why is @foo()() not legal?). There was never a rationale given for that and now we are stuck with it.
- Previous message (by thread): [Python-Dev] PEP 572: Assignment Expressions
- Next message (by thread): [Python-Dev] PEP 572: Assignment Expressions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]