I am having trouble figuring out the correct way of doing this. I am using the module cmd.<br><br>Anyway this is what I do<br><br>import myModule<br><br>class Example(cmd.Cmd):<br>    def __init__(self):<br>        cmd.Cmd.__init__(self)<br>
        self.prompt = &#39;&gt;&gt;&gt; &#39;<br><br>    def do_something(self, myFunction):<br>        myVar = someFunction(myModule.myFunction)<br><br><br>trying to use myFunction as a keyword argument so when I run it I can use a function as argument <br>
<br>&gt;&gt;&gt; something Test()<br><br>But the syntax I am using isn&#39;t right or something<br><br>Any ideas?<br><br>*cheers<br><br><br>