I see that there is a thread of a similar topic that was posted recently (
enumerate with a start index ) but thought I would start a new thread since
what I am suggesting is a little different.
Whenever I use enumerate, I am doing so because I will use the index to access
some other element i
| making the implied return statment visible might also be a good idea,
| e.g.
|
|lambda x, y: return x + y
|
| or even
|
|def (x, y): return x + y
|
Although I don't understand the implications of making such a change, the 2nd
alternative above looks very nice. Whenever I write a la
||
|| def areclose(x,y,rtol=1.e-5,atol=1.e-8):
|| return abs(x-y)http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com