Java to Python translation

Mats Wichmann mats at laplaza.org
Wed Apr 3 14:43:33 EST 2002


On 03 Apr 2002 01:15:09 -0800, Paul Rubin <phr-n2002a at nightsong.com>
wrote:

:vio <vmilitaru at sympatico.ca> writes:
:> I need to translate a (rather voluminous 100MB) java program to
:> python. After a few searches on google, apparently the best tools
:> for this task are Lex-Yacc (Flex-Bison on linux). While I am working
:> on the Lex-YACC HOWTO, I would be very interested in hearing of
:> others' successful experiences/feedback at this. Any pointers of
:> interest would similarily be appreciated.
:
:That's crazy.  Don't even think about it.  If you want Python-Java
:integration, use Jython.

It's doubful if any possible benefits of switching from Java to Python
can be realized by converting the code, which will give you not
Python, but "Java written in Python".

Instead, suggest leveraging the existing work by using Jython as a way
to begin recoding bits, probably starting with those that are shown to
need upgrading, maintenance, etc. 


Mats Wichmann




More information about the Python-list mailing list