How do you call a private module function from inside a class?
<p>I have a module that looks something like this:</p>

<pre><code>def __myFunc():
    ...

class MyClass(object):
    def __init__(self):
        self.myVar = __myFunc()
</code></pre>

<p>and I get the error:</p>

<pre><code>NameError: global name '_MyClass__myFunc' is not defined
</code></pre>

<p>How can I call this function from inside the class?</p>

<p>edit: Since posting this, I've discovered I can avoid the automatic mangling by using a single underscore instead of double underscores.  I was using two as per "Dive Into Python", which only states a double underscore denotes private functions.</p>
