Re: Jython: exec a string

2006-04-21 Thread Fabio Zadrozny
On 4/21/06, Edward Elliott <[EMAIL PROTECTED]> wrote: iirc java doesn't like multiple classes in a single file (not countinganonymous or inner classes).  sounds like jython may have the samerestriction...Actually, that's not completely true. The restriction is that you can have only 1 public class

Re: Jython: exec a string

2006-04-21 Thread Edward Elliott
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... abcd wrote: > the error i get when i run the exec is, "java.lang.ClassFormatError"... > > thanks > -- http://mail.python.org/mailman/listinf

Re: Jython: exec a string

2006-04-21 Thread abcd
the error i get when i run the exec is, "java.lang.ClassFormatError"... thanks -- http://mail.python.org/mailman/listinfo/python-list

Jython: exec a string

2006-04-21 Thread abcd
I have a single jython file, foo.py which contains multiple classes. I read that into a string and try to exec itbut I get errors saying something like unable to load class. It seems to work fine if foo.py only contains a single class, any ideas? -- http://mail.python.org/mailman/listinfo/p