Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Matt Williams <matthew.williams@ca...> - 2007-03-12 14:59:59
Since there have been two related questions, I thought I'd try & reply.
Note that I am /not/ a jython/ python expert - but I've played with both.
Accessing jython from wxpython: AFAIK, you can't (easily). wxPython is a
CPython based GUI toolkit; Jython is java based.....
Decorators: Only appeared in CPython in 2.4 (I think), whereas Jython
(unfortunately) languishes around Cpython 2.2 equivalence (this is not a
criticism of the devs).
The point is that Jython is java, but with a pythonic syntax; IS IS NOT
PYTHON (which is C based). It took me ~ 6/12 to work this out, and only
really dawned when I couldn't import Cpython modules, which turned out
to depend on a Perl library.
However, the advantage is that if someone writes a pure Python script
(and sticks to <2.2/2.3 python syntax) you can run it in Jython. The
other big advantage is that you can use all the lovely java libraries
with a pythonic syntax.
Once you've got you head round that, it becomes easy - as Paul
Fernhout's example in the last digest email shows: yes, the example is a
bit long (but graphics library stuff always is), but it is much cleaner/
easier to read - i.e.Pythonic - than native Java.