isPrime works but UnBoundLocalError when mapping on list

Andreas Tawn andreas.tawn at ubisoft.com
Wed Jul 16 05:04:09 EDT 2008


Terry Reedy wrote:
>Wrong.
Thank you.

>For loop variables continue after the loop exits.  This is 
>intentional.
I never knew that and I can't find reference to it in the docs. Can you
help me with the reasons for it?

Drea



More information about the Python-list mailing list