Creating a PyFunction

ProgDario dario at fga-software.com
Fri Sep 5 06:11:49 EDT 2003


Hello,

I have a simple question I can't find on the FAQ.

I want to instantiate a PyFunction from a Java class, but the function
is on a jython file (script1.py).

How can I get a PyFunction object referencing the function in the
external file?

Then, how can I call the function (__exec__ method ?) passing in an
argument?

Thanks in advance

Dario




More information about the Python-list mailing list