BASIC Developer & Support Resources => Interpreters => Topic started by: John on July 07, 2011, 02:17:21 AM

Title: Jython
Post by: John on July 07, 2011, 02:17:21 AM
( (

Jython programs can seamlessly import and use any Java class. Except for some standard modules, Jython programs use Java classes instead of Python modules. Jython includes almost all of the modules in the standard Python programming language distribution, lacking only some of the modules implemented originally in C. For example, a user interface in Jython could be written with Swing, AWT or SWT. Jython compiles to Java bytecode (intermediate language) either on demand or statically.

Title: Re: Jython
Post by: AIR on July 24, 2011, 06:22:53 PM
I'm trying to understand why one would use this, but I don't quite get it.

I guess if you're coming from Java, and are looking for a clearer syntax it makes sense.

From a Python user's perspective, I don't really see the advantages.  That, and the fact that you have to install it to use it (unlike Python on Linux and MacOS) makes me want to just back away.

Another thing:  So now I would have to be concerned with the interaction between this implementation and the CPython implementation when using CPython modules in JPython?  Nah, I'll pass.

Cheap Plug Alert:  If anyone reading this is interested in some of the things you can do with Python on MacOS, check out my blog @ Recursive Media (

Title: Re: Jython
Post by: John on July 24, 2011, 08:03:04 PM
I was thinking this was a way to write Java applications for Android.

Glad to see you using an interpreter for projects. You're missed over at the SB camp.