As has been previously mentioned, the PSF accepted my grant proposal
for supporting Jython development. I think this is great news for the
Jython community.
Once the holidays are over I'll have time to plan and announce the next
couple activities, primarily the feature set of the next release.
I'll definitely be looking for volunteers to help with all sorts of
development efforts such as modules and missing features (sets,
datetime, select, ...), major enhancements (jythonc) and bug fixes so
let me know if there are any areas in which you have development
interests.
Finally, I'd like to thank Samuele Pedroni for all his efforts over the
last couple years and for helping review the proposal. I'll definitely
be looking to him for some design help with Jython as he transitions to
PyPy.
thanks,
brian

I'm trying to construct an instance of a java object given a reference
to a=20
method of a java class. It is simple to do it for a jython class:
>>> from org.python.core import PyMethod, PyReflectedFunction
>>> def instanceFromMethod(method):
... if type(method) =3D=3D PyMethod:
... return method.im_class()
... elif type(method) =3D=3D PyReflectedFunction:
... print "Sorry..."
... else:
... raise Exception("Must be a function or a reflected function")
...
>>> class X:
... def f(self):
... pass
...
>>> instanceFromMethod(X.f)
<__main__.X instance at 6814979>
>>>
But I don't know how to do anything similar when it is a java-based
method:
>>> from java.lang import Object
>>> instanceFromMethod(Object.toString)
Sorry...
PyReflectedFunction doesn't seem to expose anything traceable back to
the original
class (or proxy thereof). Does anyone have any ideas?
TIA,
Clark

Hello,
In response to the Viva Scripting Language for Java
of the Year 2004 poll (see
http://jroller.com/page/viva) Mike Johnson wrote in to
tell me about an alternative Python scripting language
project for Java that he created called Jep (Java
Embedded Python).
Mike writes:
Jep embeds CPython in Java. It is safe to use in a
heavily threaded environment, it is quite fast and its
stability is a main feature and goal.
Some benefits to this approach:
- Although Python isn't blazingly fast, it may mean a
massive speed improvement over Java-based languages.
- Python is mature so authors needn't fear the
interpreter will suddenly change widely-used features.
- Access to the high quality Python modules, both
native and Python-based.
- Compilers and assorted Python tools are as mature as
the language.
- Python is an ideal language for your business logic.
It is easy to learn, eminently readable and generally
immune to programming gotchas.
More @ http://jepp.sourceforge.net and
http://sourceforge.net/projects/jepp
Let us know what you think about Jep? Is it a viable
alternative to Jython?
- Gerald
-------------------
Gerald Bauer
XUL Alliance | http://xulalliance.org
XUL News | http://xulnews.com
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca