basic (newbie) python class question
<p>I have a basic python question. I'm working on a class <code>foo</code> and I use <code>__init__():</code> to do some actions on a value:</p>

<pre><code>class foo():
  def __init__(self,bar=None):
    self.bar=bar
    if bar is None: 
       isSet=False  
    else:
       isSet=True
  print isSet
</code></pre>

<p>When I execute the code I get: <code>NameError: name 'isSet' is not defined</code>.<br>
How can I access <code>isSet</code>? What am I doing wrong?</p>

<p>regards,
martin</p>
