Jython Monthly

http://www.jython.org/css/jython.png

February 2007 -- Issue #8

Welcome to the February 2007 issue of Jython Monthly. The content of this newsletter will focus on using and developing the Jython languge. I want to encourage the readers of Jython Monthly to send any articles, tips, tricks, or any other Jython related material to me if you think it should be distributed with this newsletter.

There has been quite a bit of activity in the past couple of months within the Jython community. Jython development has been quite active, Jython 2.2 Beta 1 has been released, and the user base is also growing. As a whole, the CPython language and all of its implementations are actively growing more each day. As such is the case, this year's [http://us.pycon.org/TX2007/HomePage PyCon] event is sure to be a worthy event. I would like to encourage all reader's that live near Dallas or have the ability to travel to attend this event. It will be held Feb 23-25 in Addison Texas. For more information, please visit the [http://us.pycon.org/TX2007/HomePage PyCon 2007] home page.

Special thanks to those who submitted material for this month's newsletter!

- Josh Juneau

Questions, comments, or suggestions?

Please send email to:

jython-monthly@mchsi.com or jython-users@lists.sourceforge.net for discussion.

News

Welcome the most recent release of the Jython scripting language, Jython 2.2 Beta 1! This represents a major milestone in the life cycle of the Jython scripting language as this is the first release since the summer of 2005. The Jython developer and user community is extremely active right now and I predict that the gap between future releases will be much smaller.

Thanks to the developers for working hard on this release! Now it is up to the user community to test and give feedback for Beta 1. [http://sourceforge.net/project/downloading.php?groupname=jython&filename=jython_installer-2.2b1.jar&use_mirror=osdn Download] it now and get started!!

Articles

Adding JARs to sys.path During Runtime

Submitted By: Steve Langer

During Oct-Nov 2006 there was a thread in the jython-users group titled "adding JARs to sys.path". More accurately the objective there was to add JARs to the sys.path at runtime. Several people asked the question, "Why would you want to do that?" Well there are at least 2 good reasons. First, if you want to distribute a jython or Java package that includes non-standard Jars in it. Perhaps you want to make life easier for the target user and not demand that they know how to set environment variables. A second even more compelling reason is when there is no normal user account to provide environment variables.

[http://wiki.python.org/jython/JythonMonthly/Articles/January2007/3 Read Entire Article]

Off The Lists

Question From Luca Cassioli:

Answer From Jeff Emanuel:

see http://www.jython.org/Project/userguide.html#a-short-example

Direct translation:

# imports omitted class MyInCallObserver(CallObserver):

try:

except java.lang.Exception, ex:

Or try the bean events technique (http://www.jython.org/Project/userguide.html#event-properties):

def handleCall(evList):

try:

except java.lang.Exception, ex:

Interested in Developing Jython?

If you are interested in developing Jython, please take a look at the [http://sourceforge.net/tracker/?func=browse&group_id=12867&atid=112867 current bug listing] and submit patches for items which you can repair.

Tips and Tricks

[http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/499376 Python Cookbook: BaseHTTPServer with Socket Timeout]

[http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/502194 Python Cookbook: Generator for an arbitrary number of 'for' loops]

[http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/502199 Python Cookbook: Another generator for an arbitrary number of 'for' loops]

Jython Blogs

[http://fwierzbicki.blogspot.com/2007/02/jython-roadmap.html Jython Roadmap -- Frank Wierzbicki]

[http://fwierzbicki.blogspot.com/2007/02/jython-22-beta1-released.html Jython 2.2 - Beta 1 Released -- Frank Wierzbicki]

[http://jj-blogger.blogspot.com/2007/02/jython-22-beta-1-released.html Jython 2.2 Beta 1 -- Josh Juneau]

[http://henkenotes.blogspot.com/2007_01_01_archive.html Improvised AOP with Jython]

[http://www.jroller.com/page/languages?entry=guess_cool_graph_visualization_application GUESS: A cool graph visualization application using Jython]

[http://www.pushtotest.com/thecohenblog/jython22.html Jython 2.2 Hits Major Milestone -- Push To Test]

IDE

Pydev and Pydev Extensions 1.2.6 have been released

Details on Pydev Extensions: http://www.fabioz.com/pydev

Details on Pydev: http://pydev.sf.net

Details on its development: http://pydev.blogspot.com

Discussions

[http://www.alice.org/community/showthread.php?t=612 Jython & Alice]

[http://forums.thedailywtf.com/forums/thread/109138.aspx Connect to Java RMI Server from Jython]

[http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?forum=778&thread=151729&cat=9 Extended Repository Service & Jython Scripting]

Discussion Submitted by Thomas Muller -- Second Notice

Hello jython users,

I want to suggest a new project, but need your help. There is an open source python written serverless instant messenger out (based on a kademlia DHT lookup for buddies):

http://cspace.in

Version 1.26 (though the icons in version 1.24 are better). As well a linux porting exists. http://www.aabdalla.com/releases/

I want to initiate a project to port the python messenger to java using jython. But I cannot do it alone. We could register a sf.net project for "cspace-java". Is jython ready to just compile it and get a jar out and a source-file out? Can someone send this through jython or help?

The server is serverless and this means independence from any central instance. It uses to identify the buddy a RSA-Key and a CSpace-ID from the developer-server. In the long run, only the RSA-Key should be used. Unfortunatly you cannot a) create an RSA-key without that central server and b) you cannot launch the application without the Cspace-ID.

Anyway, we can use it with the tachyon server for creation, but communication and buddy-lookup is decentral and encrypted like skype as well.

But what we need is a java version. Maybe the cspace developers did not played around with jython either, and instead of coding windows and Linux or MacOSX port, we can switch to interoperable java.

But as there are less resources, I want to ask the mailinglist of jython to fix the current status of the application over jython to java please.

The serverless Messenger in java could be easily built in into many applications, which need an instant messenger:

- yacy.net - serverless p2p webindex search engine in java - sf.net/projects/antsp2p - already a jeti-jabber buddylist integrated for bootstrapping, but it is central. - limewire.com of course - azureus.sf.net of course - wikisari, the google pendant, still under development http://lists.wikia.com/pipermail/search-l/2006-December/000004.html

Does anyone agree on that potentials? kind regards tom

Interesting Facts

Jython - Average Job Salary & Stats in UK http://www.itjobswatch.co.uk/jobs/uk/jython.do

Useful Links

[http://www-1.ibm.com/support/docview.wss?rs=180&uid=swg24012144 Jacl v2.5 Released]

The IBM® Jacl to Jython Conversion Assistant (Jacl2Jython) is a program that assists in converting WebSphere® administrative (wsadmin) scripts written in Jacl into Jython syntax.

Links

[http://www.jython.org Jython Home]

[http://www.python.org Python Home]

[http://en.wikipedia.org/wiki/Jython Jython WikiPedia]

[http://freshmeat.net/projects/jython/ Freshmeat.net]

[http://www.pythonware.com/daily/ Python Daily News]

[http://planet.jython.org/ Planet Jython]