isPrime works but UnBoundLocalError when mapping on list
Tim Golden
mail at timgolden.me.uk
Wed Jul 16 07:43:37 EDT 2008
Andreas Tawn wrote:
> 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.
Interesting starting point. It never occurred to me
that they might not. (So I didn't look for anything
in the docs when they did :) ).
TJG
More information about the Python-list
mailing list