[Python-Dev] PEP 572: Assignment Expressions (original) (raw)
Chris Angelico rosuav at gmail.com
Fri Apr 20 11:49:25 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 Fri, Apr 20, 2018 at 10:51 PM, Paul Moore <p.f.moore at gmail.com> wrote:
2. I hadn't really thought of the PEP in those terms. Now that you've mentioned it, "Python has never before had syntax that assigns names from within an expression" is quite a significant change, and one the PEP needs to examine the implications of. It's mostly been covered in the discussions by now, of course.
Depending on your definition of "assignment", a lambda function could count as a means of assigning a variable in a subexpression. But yes, there is no convenient way to assign to something in a wider scope.
ChrisA
- 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 ]