|
Re: Evals from Java: msg#00029lang.jython.user
Jake Eakle wrote: Hi all, This example shows how to do what you want: http://www.jython.org/docs/embedding.html I'm not sure but I think the returned PyObject will actually be a PyInteger and you can call getValue() on it to get the result. You should know that eval() is a security hole that leaves you open to denial-of-service attacks and probably data loss. Don't eval() strings from an untrusted source. Kent ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Re: Simple but fundamental: How to import a jython class?, Kent Johnson |
|---|---|
| Next by Date: | Re: -classpath "c:/jython-2.1/jython.jar, Johannes |
| Previous by Thread: | Evals from Java, Jake Eakle |
| Next by Thread: | Re: Evals from Java, Jake Eakle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |