[Python-Dev] PEP 572: Why not := as standard assignment operator? (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Thu Apr 26 19:16:57 EDT 2018
- Previous message (by thread): [Python-Dev] PEP 572: Why not := as standard assignment operator?
- Next message (by thread): [Python-Dev] PEP 572: Why not := as standard assignment operator?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Chris Angelico wrote:
No. Any expression may be used as a statement, so this isn't "outside an expression".
It could be detected as a special case and rejected some time later in the compilation process. The question is whether it's worth making the rules more complicated just to forbid something that some peple think is bad style.
-- Greg
- Previous message (by thread): [Python-Dev] PEP 572: Why not := as standard assignment operator?
- Next message (by thread): [Python-Dev] PEP 572: Why not := as standard assignment operator?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]