"Paul Rubin" <"http://phr.cx"@NOSPAM.invalid> wrote in message 
news:[EMAIL PROTECTED]
| or the Python idiom [(lambda i=i: i) for i in range(10)]

While the idiom is commonly written this way, I think it would be clearer 
if the two related but different variables had two different names:
   [(lambda j=i:j) for i in range(10)]

Terry Jan Reedy




-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to