A Look At Jython
This article discusses Jython, a software project that aims to provide seamless integration between Java and Python. This article requires a basic understanding of both languages
This article discusses Jython, a software project that ai
Tutorial Details:
Using The Jython Interpreter
The jython interpreter is a Python interpreter implemented in 100% Java. It allows you to write Python code that accesses Java classes.
The latest stable version of jython, released in December of 2001, implements features of Python 2.1. Python, however, has already reached version 2.3. This means that Python features unique to versions 2.2 and 2.3 are unavailable in the current stable version of jython:
* New in Python 2.2
o deriving from built-in types
o attribute and method descriptors
o changes to the class lookup algorithm for complicated class hierarchies
o new built-in methods for attribute access
o iterators
o generators
* New in Python 2.3
o new boolean and set data types
o source code encodings
o importing from zip archives
o universal newline support
o an enumerate function for clearer iterative loops
o new import hooks
An alpha version of jython, available for download at the Jython site, implements a mixture of Python 2.1 and 2.2. The Jython group characterizes this alpha version as an unstable and experimental release that contains significant known issues. In other words, use the alpha version at your own risk.
Besides lacking recent Python language features, jython is missing some Python modules in its library implementation. On top of that, there is little documentation describing which modules are supported and which are not. If you want to know if a module is supported, the FAQ suggests attempting to import the module in question. If the import fails, you can try to copy over the corresponding *.py module from the CPython implementation. As a last effort you can request help on the public mailing lists.
While the Python support in jython is restricted to version 2.1, the Java support is completely up-to-date. You can use _any_ Java code from inside the jython interpreter. This includes the standard Java 1.4.2 libraries, libraries written by third parties, and your own custom libraries.
Read
Tutorial at: Click here to view the tutorial
Rate Tutorial: A Look At
Jython
View Tutorial: A Look At
Jython
Related
Tutorials:
Java scripting languages: Which is
right for you?
Java scripting languages: Which is
right for you? |
Related Values Processing Framework (RVPF)
Related Values Processing Framework (RVPF)
Overview
The Related Values Processing Framework is being developed to help the integration of Process Control Data Historian Systems. This is done by providing support for the conversion, computation and di |
JCalendar Library provides a ComboBox (JCalendarComboBox) for selecting a Date and a simple Panel (JCalendarPanel) for s
It is coded with 2 rules:
* No hard coded Fonts or Colors, use the current Look and Feel
* No hard coded locale behaviour, use the default or a given Locale (Start of Week, Name of Days/Months)
|
Excerpt from Apache Axis Live
Excerpt from Apache Axis Live
This chapter, "Getting Started with the Apache Axis Project," you will take "a brief look at what Axis is and how it implements some of the SOAP services. |
Nested Classes, Part 1
Nested Classes, Part 1
The concept of nesting a class within another class or method presents unique issues not found elsewhere in object-oriented programming. |
J2ME app development on the 6600
J2ME app development on the 6600
Introduction
When you first look at the Nokia 6600, the first reaction is very predictable. wow! It is truely a good looking phone. A stunner. Let's find out if there's more to this phone than just good looks. |
Eclipse 3.0 is out
Eclipse 3.0 is out
Welcome to eclipse.org
Eclipse is a kind of universal tool platform - an open extensible IDE for anything and nothing in particular. |
Jython
Get to know Jython, in this first article in a new series introducing alternate languages for the Java Runtime Environment, alt.lang.jre. Jython is an implementation of the popular scripting language Python, but running on a JVM. For Python developers Jyt |
Welcome to the Tonic Look & Feel.
Welcome to the Tonic Look & Feel. This pluggable look and feel is a free substitute for the default native look and feel of Swing, 'Metal', distributed under the GNU Lesser General Public License. |
Java look and feel icons
These pages contain a collection of toolbar button graphics. The graphics have been designed specifically for use with the Java look and feel. They conform to the Java look and feel Design Guidelines (see the "Designing Button Graphics" section of the "Ap |
Quaqua Look And Feel
Quaqua Look And Feel
The Quaqua Look and Feel (Quaqua) is an implementation of Apple's Aqua Human Interface Guidelines in Java.
Quaqua is not yet a self-contained look and feel. As Quaqua matures, it provides a steadily growing number of user elements |
An example of public use
ashkelon lite
"ashkelon lite" provides all the benefits of the ashkelon product without any of the hassle and overhead. It's ashkelon in a war file. There's no need to setup a database, no need to configure _anything_, not even to populate a repository
|
alt.lang.jre: Take a shine to JRuby
JRuby combines the object-oriented strength of Smalltalk, the expressiveness of Perl, and the flexibility of the Java class libraries into a single, efficient rapid development framework for the Java platform. In this third installment in the alt.lang.jre |
Groovy, Java\'s New Scripting Language
Groovy, Java\'s New Scripting Language
When some Java developers hear about Groovy, their first reaction often is, as mine was, "Oh, no, not another scripting language for Java." We already have, after all, JavaScript and Rhino, Jython, Jelly, BeanShell, |
The JDBC RowSet Implementations Tutorial
In "The JDBC RowSet Implementations Tutorial," you will look at how to use the standard JDBC RowSet implementations specified in JSR-114. |
Advanced Features of JSP Custom Tag Libraries
In this article, the second in the JSP custom tag libraries series, we will cover advanced JSP features and how to use them. |
What's New in Swing?
A new skinnable look and feel (Synth), printing support for |JTable| components, the ability to add components directly to a frame, these are a few of the new features in Swing for J2SE 5.0. |
Application Servers Available in Market. Web Servers. J2EE server.
Application Servers Available in Market. Web Servers. J2EE server.
Application Servers Available in Market
Before we go into the grater details of the EJB let's look at some of the EJB Application Servers available in the market. Application |
Advanced Synth
Take an in-depth look at the Synth look and feel, the newest addition to Swing introduced in Java 5.0. Synth lets developers rapidly create and deploy custom looks for an application by introducing the concept of a "skin" to Java UI programming. |
ORA
ORA is a Framework written in Java (plattform independent). |
|
|
|