> One approach is to compile the Jython code into a class file. This > requires some work on the Python side (similar to using gen-class in > Clojure so that Clojure code can be called from Java), and the Python > class of interest can't use multiple-inheritance. This approach is > discussed in the section called "How to create Jython classes callable > from Java programs" at > http://www.seanet.com/~bugbee/python/jython4.html > > Alas that page is a little out of date and jythonc (Jython's stand alone gen-class thing) is going / gone in the most recent versions of Jython. One thing that I should add is that you can create implementations of Java interfaces that actually do cast correctly Java side:
for example: http://wiki.python.org/jython/JythonMonthly/Articles/September2006/1 Which isn't quite "call individual Python functions" but will end up getting less intimate with the Jython runtime than the work that I'm doing. Marc. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en