What is Jython and is it useful at all?

TIMEX picture TIMEX · Dec 7, 2009 · Viewed 31.3k times · Source

I know Python, but what is Jython?

  • When will I need Jython?
  • What are the drawbacks?
  • I assume it is slow?

Please detail it out! thanks.

Answer

Joey picture Joey · Dec 7, 2009

Quoting Wikipedia:

Jython, successor of JPython, is an implementation of the Python programming language written in Java.

As for what uses it may have:

Jython programs can seamlessly import and use any Java class. Except for some standard modules, Jython programs use Java classes instead of Python modules.

Performance measurements of Jython, IronPython and CPython show that both Jython and IronPython outperform CPython for some cases with large datasets.