[Python-Dev] PEP 572: Assignment Expressions (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Thu Apr 19 02:42:11 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 ]
MRAB wrote:
Some languages use '=' for assignment, others for equality, but do you know of a language that uses ':=' for equality' or '==' for assignment?
No, but the only sane reason to use "==" for equality testing seems to be if you're already using "=" for something else. So maybe we should just implement "from future import pascal" and be done with. :-)
-- Greg
- 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 ]