Re: [Python-ideas] How assignment should work with generators?

Nov. 27, 2017
2:35 p.m.
Sorry for that, I did not want to embarrass anyone, so I wrote below that the assignment did not happen. But probably the code should speak for itself, especially if it looks like a copy from REPL
No, it can be simply x, y = iter(it)
:-) Perhaps a better idea might be special syntax to tell the interpreter
I wrote somewhere above, that "may be I like this form". But for me * '"starred" target implies -> collect something from iterable. So now I'm towards: x, y, ... = iterable But I have not summed up yet what pitfalls can be on this path. Thank you your remarks were very extensive! With kind regards, -gdg
2669
Age (days ago)
2669
Last active (days ago)
0 comments
1 participants
participants (1)
-
Kirill Balunov