for statement on empty iterable

james_027 cai.haibin at gmail.com
Wed Aug 22 01:41:10 EDT 2007


hi Paul,

>
> That doesn't crash or anything like that, but it also doesn't
> set the index variable, which can cause confusion in some situations.

Thanks for your quick answer ... Actually I was thinking how do I
access the index inside a for statement? Can you help

Thanks
james





More information about the Python-list mailing list