Jython: exec a string
Fabio Zadrozny
fabiofz at gmail.com
Fri Apr 21 19:50:13 EDT 2006
On 4/21/06, Edward Elliott <nobody at 127.0.0.1> wrote:
>
> iirc java doesn't like multiple classes in a single file (not counting
> anonymous or inner classes). sounds like jython may have the same
> restriction...
Actually, that's not completely true. The restriction is that you can have
only 1 public class in the top-level, but you can have other non-public
top-level classes, and jython does not share that restriction.
abcd wrote:
> > the error i get when i run the exec is, "java.lang.ClassFormatError"...
> >
>
Could you post the examples you're using? In a simple test it works for me.
Cheers,
Fabio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060421/5629740d/attachment.html>
More information about the Python-list
mailing list