Is Jython compatible with Python?

Simon Brunning SBrunning at trisystems.co.uk
Thu May 24 03:52:56 EDT 2001


> From:	Daniel Klein [SMTP:danielk at aracnet.com]
> Can modules written in Python be imported and used in Jython? Or do I have
> to re-write the code?
> What are the limits, if any?
 
Short answers - yes, no, and not many, respectively.

Longer answer - there are a few minor inconsistencies, but nothing major.
Nothing that you unit test won't find. You *do* have unit tests, don't you?
<wink>.

A *very* few of the modules in the standard library aren't available for
Jython, but I have never been caused a problem. YMMV.

For full details, see <http://jython.sourceforge.net/docs/differences.html>.

Cheers,
Simon Brunning
TriSystems Ltd.
sbrunning at trisystems.co.uk




-----------------------------------------------------------------------
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
accept liability for statements made which are clearly the senders own.




More information about the Python-list mailing list