Re: code to call arbitrary function on Python modules, and eval()

2011-06-30 Thread Andi Vajda

On Jul 1, 2011, at 0:49, Bill Janssen jans...@parc.com wrote:

 Here's some code implementing a class called PythonModule,

Hmm, no code was received here...

Andi..

 which allows Java code to invoke arbitary module-level functions,
 and allows use of Python's eval built-in.
 
 The Python code is a bit tricky; is there a better way to cast a Java
 scalar type to its Python equivalent value?



 
 Bill
 


Re: code to call arbitrary function on Python modules, and eval()

2011-06-30 Thread Andi Vajda

On Jul 1, 2011, at 0:49, Bill Janssen jans...@parc.com wrote:

 Here's some code implementing a class called PythonModule,

Hmm, no code was received here...

Andi..

 which allows Java code to invoke arbitary module-level functions,
 and allows use of Python's eval built-in.
 
 The Python code is a bit tricky; is there a better way to cast a Java
 scalar type to its Python equivalent value?



 
 Bill