[Python-Dev] (name := expression) doesn't fit the narrative of PEP 20

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Apr 26 06:39:31 EDT 2018


Antoine Pitrou wrote:
> Depends if you mean a graph between names or values?
 >
> If between names, you can even have cycles AFAICT:
> 
>   ((a: = a + b), (b: = a))

I was thinking more of the dataflow graph. That's not
a cycle between *values*, since the new values being
bound are calculated from the previous values of the
names.

-- 
Greg



More information about the Python-Dev mailing list