Re: isPrime works but UnBoundLocalError when mapping on list

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tim Golden

    Re: isPrime works but UnBoundLocalError when mapping on list

    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
Working...