Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Differences between Jython and Python

I know Jython converts Python code into Java byte code, but are there any syntax changes between the two? and as a side question is Jython 3.x usable yet or is it still being ported?

like image 872
RandomPhobia Avatar asked Jun 12 '12 00:06

RandomPhobia


People also ask

What is Jython used for?

Jython is a version of the Python programming language that runs on the Java platform. It allows users to write programs in Python and compile them to Java bytecodes that run directly on a Java Virtual Machine, or JVM.

Is Jython a scripting language?

Even with the given limitations, Jython is a powerful language for ImageJ scripting.

Does Jython require Python?

Yes. Jython is an implementation of the Python language in Java.

Is Jython still used?

Java. Jython was started by Jim Hugunin in 1997 as “JPython”, and has seen continued development since then. However, development of Jython is remains on the Python 2.7 line, a major release of the Python interpreter which, since the beginning of 2020, is no longer being maintained.


1 Answers

In a nutshell

Differences of - Python & Jython

Python

  1. C
  2. Multi-platform
  3. Compiles to .pyc
  4. Extend with C
  5. GIL 1*
  6. Python Garbage Collection

1*. Global Interpreter Lock, explained in Documentation Python documentation, chapter 8.1 (1)

Jython

  1. 100% Java
  2. Any JVM (currently 1.1+)
  3. Compiles to .class
  4. Extend with Java
  5. Truly multi-threaded
  6. Java garbage collection

For more information there is nothing better than visiting there on website

like image 194
iCurious Avatar answered Sep 25 '22 12:09

iCurious