I am having trouble figuring out the correct way of doing this. I am using
the module cmd.

Anyway this is what I do

import myModule

class Example(cmd.Cmd):
    def __init__(self):
        cmd.Cmd.__init__(self)
        self.prompt = '>>> '

    def do_something(self, myFunction):
        myVar = someFunction(myModule.myFunction)


trying to use myFunction as a keyword argument so when I run it I can use a
function as argument

>>> something Test()

But the syntax I am using isn't right or something

Any ideas?

*cheers
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to