Differences between revisions 7 and 8
Revision 7 as of 2006-12-09 17:58:00
Size: 3803
Editor: JoshJuneau
Comment:
Revision 8 as of 2006-12-11 20:38:35
Size: 4703
Editor: JoshJuneau
Comment:
Deletions are marked like this. Additions are marked like this.
Line 24: Line 24:
= Interested in Developing Jython? = = Tips and Tricks =
Line 26: Line 26:
Check out the new [http://wiki.python.org/jython/JythonDeveloperGuide/PortingPythonModulesToJython Porting Python Modules to Jython] guide which has been posted by Charlie Groves. This guide will help beginners get a quick start on developing Jython. Thanks for the guide Charlie. This is an old useful trick for referencing a static method within a Jython class.
Line 28: Line 28:
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. {{{
# direct, naive approach -- doesn't work...:
class Class1:
    def static1(name):
        print "Hello",name

# ...but now, a call such as:
Class1.static1("John")
# will fail with a TypeError, as 'static1' has become
# an unbound-method object, not a plain function.

# This is easy to solve with a simple tiny wrapper:
class Callable:
    def __init__(self, anycallable):
        self.__call__ = anycallable

# toy-example usage:
class Class2:
    def static2(name):
        print "Hi there",name
    static2 = Callable(static2)

# now, a call such as:
Class2.static2("Peter")
# works just fine, and as-expected
}}}

Thanks to Alex Martelli for posting this recipe.

[http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52304 Python Cookbook]
Line 79: Line 108:
= Interested in Developing Jython? =

Check out the new [http://wiki.python.org/jython/JythonDeveloperGuide/PortingPythonModulesToJython Porting Python Modules to Jython] guide which has been posted by Charlie Groves. This guide will help beginners get a quick start on developing Jython. Thanks for the guide Charlie.

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.


Jython Monthly

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

December 2006 -- Issue #6

In Progress...

Seasons Greetings!

Welcome to the December 2006 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.

I wish you and your families a very happy holiday!

- Josh Juneau

Questions, comments, or suggestions?

Please send email to:

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

Articles

Tips and Tricks

This is an old useful trick for referencing a static method within a Jython class.

# direct, naive approach -- doesn't work...:
class Class1:
    def static1(name):
        print "Hello",name

# ...but now, a call such as:
Class1.static1("John")
# will fail with a TypeError, as 'static1' has become 
# an unbound-method object, not a plain function.

# This is easy to solve with a simple tiny wrapper:
class Callable:
    def __init__(self, anycallable):
        self.__call__ = anycallable

# toy-example usage:
class Class2:
    def static2(name):
        print "Hi there",name
    static2 = Callable(static2)

# now, a call such as:
Class2.static2("Peter")
# works just fine, and as-expected

Thanks to Alex Martelli for posting this recipe.

[http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52304 Python Cookbook]

Podcasts

Python 411

An excellent Python podcast which is useful for keeping current on the Python language, and also for learning how to use many of it's features.

[http://www.awaretek.com/python/index.html Python 411 Site]

Jython Blogs

[http://headius.blogspot.com/2006/11/jython-alive-and-well-and-looking-for.html Jython Alive and Well and Looking For Love]

[http://rebelwithoutamouse.blogspot.com/2006/11/ironpython-and-jython.html IronPython and Jython]

[http://www.javalobby.org/java/forums/t84455.html Javalobby Forum]

News

PyCon 2007

PyCon 2007 is getting closer. The event is scheduled to take place in Addison, Texas (near Dallas) on February 23-25, 2007.

The list of talks is available [http://us.pycon.org/apps07/talks/ here]. Frank Wierzbicki will be giving a talk entitled Jython for Python Developers. Book your reservations today and do not miss out on the event!

JavaOne Help

The JavaOne event will be held at the Moscone Center in San Francisco, California on May 8-11 2007. The Call for Papers is now open and there is a need for Jython presentations. If you are interested or would like to learn more about the event, please visit [http://java.sun.com/javaone/sf/index.jsp JavaOne 2007 Site]

2.2 Beta Just Around the Corner

Developers on the Jython project are predicting that the next beta release will be due out soon...please stay tuned to [http://www.jython.org the Jython site] for the most recent details on this upcoming release.

Interesting Facts

[http://codegolf.com:80/ Code Golf]

Based on the original perl golf, Code Golf allows you to show off your code-fu by trying to solve coding problems using the least number of keystrokes.

You're not just limited to Perl either - PHP, Python and Ruby are all available too.

Challenges are always open, and your entries are automatically scored so you can start playing right away!


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

Interested in Developing Jython?

Check out the new [http://wiki.python.org/jython/JythonDeveloperGuide/PortingPythonModulesToJython Porting Python Modules to Jython] guide which has been posted by Charlie Groves. This guide will help beginners get a quick start on developing Jython. Thanks for the guide Charlie.

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.

Useful Links

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]

JythonMonthly/Newsletters/December2006 (last edited 2008-11-15 09:16:02 by localhost)