jython 2 cpython bridge

Steve Menard steve.menard at videotron.ca
Tue May 25 08:58:43 EDT 2004


Irmen de Jong wrote:
> Randall Smith wrote:
> 
>> I would like to use a type 4 JDBC driver in my Python program.  I 
>> believe I can use in with Jython.  Do you know of some way to 
>> communicate between the Jython and Python processes so that the 
>> CPython program can use the Jython JDBC database connection?
> 
> 
> Create some form of IPC between the two, for instance using xmlrpc.
> 
> --Irmen
> 
> PS: I would have suggested to use Pyro, but:
>  - Java/Jython doesn't have the select() system call that Pyro needs for 
> a server,
>  - There are bugs in Jython that make it crash when compiling Pyro's 
> source.

<shameless plug>
Alternately, you can look at JPype ( http://jpype.sourceforge.net ).

It is still a very early release, but I would welcome any feeback. And 
version 0.1 should allow you to use JDBC without problem.

It currently only works on Windows, but if there is interest, I could 
make a linux release pretty quickly.

</shameless plug>



More information about the Python-list mailing list