On Mon, Jul 02, 2001 at 09:45:25PM -0400, Jeff Dever wrote:
| We are using Jython to provide scripting capability to a java based
| simulation tool at Nortel Networks (no, we're not dead). The simulation
| is of a CORBA client we us with our network management software. We
| have found the Jython intrepter to be somewhat of a magic bullet for our
| application. Fantastic work. A few questions:
| Is there any facility for JavaDoc style comments in the Jython source?
| As the rest of the application is in Java, combined with the fact that
| the Jython features are very external, means that we would like to be
| able to extract good documentation in a reasonable format.
You can't put javadoc comments in because /** */ is not a comment
delimiter in Python and the javadoc tool won't recognize the python
constructs. You can, however, use the python style of including
docstrings in various objects (modules, classes, functions, methods)
and use a tool such as PyDoc (this one is by Ka-Ping Yee) to generate
documentation. There are some other tools too -- try searching on
Parnassus or Google (I haven't used any yet since I haven't had a
large enough python project to warrant the time spent learning one).
| Do java threads started in Jython code run fully as normal java
| threads? Our application is highly multithreaded and runs on multi-cpu
| Sun hardware and needs full threading suppport from the JVM.
I don't really know. I would imagine that they do because how else
are you going to get a thread in Java? The source is available for
those who really want to know all the details :-).