As a computer language, Python is widely used. If you have any questions, for example, how to use Python to implement Java and the difficulties encountered in implementing Java in Python, you can browse our article, which is an introduction to its related content.
To learn about Jython, you must first understand Python. Python is an advanced, object-oriented, open-source programming language written in C. Cuido vanrosum is the original creator of Python. in the rapid development of Python, a large group of high-level designers and programmers were created. Developers who use Python to implement Java are growing rapidly and keep growing.
However, Sun's Java programming language is also deep in everyone's mind. With the number of projects implemented in Java approaching the number of projects implemented in C/C ++, it is also necessary to implement Python Java. Jython, originally called JPython, is the Java Implementation of Python.
Jython is a complete language, rather than a Java translator or just a Python compiler. It is a complete implementation of the Python language in Java. Jython also has many module libraries inherited from CPython. The most interesting thing is that, unlike CPython or any other advanced language, Jython provides all access to its implementation language. So Jython not only provides you with Python libraries, but also provides all Java classes. This gives it a huge resource library.
Jython and Python emphasize the simplicity, convenience, and ease of coding. Jython uses indentation to define code blocks to avoid braces in Java. Jython uses a new row to indicate the beginning of a new statement. There are several important differences, for example, the semicolon can be omitted after each statement.
- How to parse Python function variables
- How to build a Python thread lock Module
- How to solve the problem of bus charging with multiple threads in Python
- How to compile an exe file in Python
- How does a Python game solve the inconvenience caused by game operations?
Jython does not have the public, private, and protected accessors in Java. This gives programmers the flexibility needed for rapid development and focuses on program logic. As mentioned above, Jython does not need explicit static type definitions, so programmers do not need to move from program logic to Type Definitions.
Jython's history goes back to JimHugunin, a colleague of Guidovan rosum at the National Research power center (CNRI. JimHugunin realized the importance of implementing the Python programming language in Java and implemented the language originally named JPython. Due to the development of aspectj (http://aspectj.org/), JimHugunin cannot continue to work on JPython. Therefore, when Python Java developers are about to leave CNRI, Barry Warsaw, who was also in CNRI, will continue to lead the development.
The Python and Jython project team changed from CNRI to a more open Language Model on Sourceforge. During this period, FinnBock, a principal contributor to Jython (JPython), led the Jython project team. Thanks to the outstanding contributions made by FinnBock, Jython is now a valuable tool.
Open-source projects like Jython are as outstanding as those who develop and maintain them. In this sense, Jython is lucky to have contributed and guided by FinnBack. Another person who has made the latest and valuable contributions to Jython is SamuelePedroni. Samuel's contribution mainly lies in the class loading and import mechanism of Jython. Finn and Samuel are currently two major developers of Jython.