Generator comprehension - list None

Chris Angelico rosuav at gmail.com
Tue Oct 18 09:05:25 EDT 2016


On Tue, Oct 18, 2016 at 11:57 PM, Jon Ribbens <jon+usenet at unequivocal.eu> wrote:
> I must admit I find the idea of enumerate(range(n)) quite pleasing.
> gotta keep track of which numbers those numbers are!

Heh! I'm assuming that's a placeholder for
enumerate(some_other_iterable), where the actual iterable in question
isn't particularly interesting to the question. But it is funny.

ChrisA



More information about the Python-list mailing list