Calling class members from function Definition
<p>Is there a way in Python to call class object from function definition ?</p>

<p>Let say I have class</p>

<pre><code>class myClass():
          def __init__(self, member1 = 0)
          self.member1 = member1
</code></pre>

<p>and function definition</p>

<pre><code>def myFunction(x):
    var1 = ............
</code></pre>

<p>I would like to assign <code>member1</code> to <code>var1</code> in function definition. </p>

<p>Thanks !</p>
