Re: [Python-ideas] An alternative to PEP 572's Statement-Local Name Bindings
4 Mar
2018
4 Mar
'18
6:18 p.m.
Robert Vanden Eynde wrote:
But I think that the implementation of print(y with y = x + 1) would be more close to next(y for y in [ x+1 ])
WHy on earth should it be? Expanding that gives you a generator containing a loop that only executes once that is immediately run to yield exactly one value. Why bother with all that overhead?
You're probably right.
2238
Age (days ago)
2238
Last active (days ago)
0 comments
1 participants
participants (1)
-
Robert Vanden Eynde