From: <bc...@wo...> - 2001-01-18 10:13:31
|
I am happy to announce the release of Jython 2.0. Jython is a Java implementation of the Python programming language. It allows users to compile Python source code to Java byte codes, and run the resulting bytecodes on any Java Virtual Machine. It is a very seamless and smooth integration with Java: from Python you have complete access to all Java libraries, can build applets, can integrate with Java beans, and can subclass Java classes in Python and vice versa. Like Python, and unlike Java, Jython can also be used interactively: just type some Jython code at the prompt and see the results immediately. A java installer is available for download at the Jython website: http://www.jython.org/ Installation is started by running the installer class. Further information and tips on installation is available at: http://www.jython.org/install.html Jython 2.0 is feature compatible with Python 2.0 and among the new feature are: - Augmented assignment, e.g. x += 1 - List comprehensions, e.g. [x**2 for x in range(10)] - Extended import statement, e.g. import Module as Name - Extended print statement, e.g. print >> file, "Hello" A complete list of changes and differences are available here: http://www.jython.org/NEWS.html Bugs can be reported to the bug manager on SourceForge: http://sourceforge.net/bugs/?group_id=12867 Cheers, the jython-developers |
From: <ba...@di...> - 2001-01-18 20:46:32
|
On behalf of the Pythonlabs team, I want to extend my congratulations to Finn Bock on the release of Jython 2.0 final. This is a wonderful milestone in the life of JPython and Jython. Some of you are probably aware that I haven't been actively involved in Jython development for many months. With the Pythonlabs turmoil in 2000, I found that trying to lead two open source projects (Mailman and Jython) while still contributing to CPython's development was simply too much. I ran out of cycles and something had to give. Handing over the reins of Jython project leadership to Finn was actually quite an easy decision. He has been a valued contributor to the project for a long time, and I knew that he would serve Jython well. The Jython 2.0 release reinforces the wisdom of that decision! :) Jython is and continues to be a very important part of the Python world. The Pythonlabs team encourages and salutes Finn's work on Jython and will continue to work with him on various issues such as language development, CPython compatibility, and legal issues. I leave Jython in good hands -- thanks Finn Bock, Samuele Pedroni, and all the other Jython developers. -Barry Barry A. Warsaw PythonLabs at Digital Creations ba...@di... |
From: D-Man <ds...@ri...> - 2001-01-18 22:27:42
|
Jython is very cool! Thanks Finn. I have used it already to find some errors in my Java code ;-) (the interactiveness is invaluable). On Thu, Jan 18, 2001 at 10:12:20AM +0000, Finn Bock wrote: | Java beans, and can subclass Java classes in Python and vice | versa. Like Python, and unlike Java, Jython can also be How can you access Python classes / modules directly from Java? It would be very cool if I could use Jython while not changing any of the Java my coworkers are using. (ie. They wouldn't even have to know I was using jython except for including the jar file in the classpath) Thanks, -D |
From: <bc...@wo...> - 2001-01-19 15:08:55
|
On Thu, 18 Jan 2001 17:27:39 -0500, you wrote: >How can you access Python classes / modules directly from Java? A python class can implement a java interface or java class by listing the java interface as a base class. Instances of such a python class can be passed to java code as a parameter and used as any other java class. In addition, the command "jythonc" can be be used to create a java class from a python module. Such a java class be used from a java program as a normal java class. Including in a "new" statement. regards. finn |
From: D-Man <ds...@ri...> - 2001-01-23 00:23:42
|
Oops, I didn't have the mailfolder listed in my MUA. Wow. The list isn't dead. :-) On Fri, Jan 19, 2001 at 03:08:13PM +0000, Finn Bock wrote: | On Thu, 18 Jan 2001 17:27:39 -0500, you wrote: | | >How can you access Python classes / modules directly from Java? | | A python class can implement a java interface or java class by listing | the java interface as a base class. Instances of such a python class can | be passed to java code as a parameter and used as any other java class. | | In addition, the command "jythonc" can be be used to create a java class | from a python module. Such a java class be used from a java program as a | normal java class. Including in a "new" statement. I just found it in the FAQ -- I need to include @sig in the doc string. I was using jythonc, but it didn't create a Java interface that matched my Python interface (it simply called into the interpreter to execute the python stuff). | | regards. | finn I'll check it out some more. Thanks, -D |