[Tutor] Tutor Digest, Vol 96, Issue 69

Alan Gauld alan.gauld at btinternet.com
Fri Feb 17 01:19:20 CET 2012


On 16/02/12 23:45, Nicholas Palmer wrote:
> I am fairly experienced in java and I was wondering how to use java in
> python code, if you could give me any tips.\

In general you don't you use Python instead of Java.

But if you really must you can use Jython which is an implementation of 
python in Java. This allows you to use Java classes in Python and 
Python(Jython) classes in Java. Of course nothing is free so you get a 
performance hit and a resource hit (you have to embed the interpreter in 
your app). But you get a big development efficiency boon.

HTH,

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list