[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: Use python and Jython together? (newbie

Christian Heimes

3/13/2010 3:10:00 PM

Karjer Jdfjdf wrote:
> I'm pretty new at programming and want some advice on mixing Jython and Python.
>
> I want to use Jython to access some Java libraries, but I want to keep developing in normal Python. Some modules I use a lot are not available in Jython.
>
> The bulk of my programming is in Python but I want to use Java 2D libraries for graphical presentation of data generated in normal Python. Is it possible that I generate data in Python and then pass it through to a Jython program to visualise the data.

You can't mix Jython and Python in one program. But you can use other
means to create bindings for Java code. JCC
(http://pypi.python.org/pypi...) is a very powerful code
generator for CPython.

Christian
1 Answer

Waldemar Osuch

3/13/2010 11:12:00 PM

0

On Mar 13, 8:10 am, Christian Heimes <li...@cheimes.de> wrote:
> Karjer Jdfjdf wrote:
> > I'm pretty new at programming and want some advice on mixing Jython and Python.
>
> > I want to use Jython to access some Java libraries, but I want to keep developing in normal Python. Some modules I use a lot are not available in Jython.
>
> > The bulk of my programming is in Python but I want to use Java 2D libraries for graphical presentation of data generated in normal Python. Is it possible that I generate data in Python and then pass it through to a Jython program to visualise the data.
>
> You can't mix Jython and Python in one program. But you can use other
> means to create bindings for Java code. JCC
> (http://pypi.python.org/pypi...) is a very powerful code
> generator for CPython.
>
I have not tried it myself but it seems to be possible.
http://jpype.source...