Pep 276 - if 6 were 9

Hamish Lawson hamish_lawson at yahoo.co.uk
Thu Mar 7 10:29:38 EST 2002


Emile van Sebille wrote:

> If, in the beginning, Guido opted to call 'in' 'of', would there be a
> question of iterating over an integer?
> 
> For example,
> 
> for each of range(6):
> for each of mylist:
> for each of 6:

I would expect 'for each of 6' to produce just 6, so my answer would be 'No'.

Hamish Lawson



More information about the Python-list mailing list