From: Pierre T. <pie...@gm...> - 2011-10-22 20:37:12
|
2011/10/20 Quanah Gibson-Mount <qu...@zi...> > --On Wednesday, September 14, 2011 10:46 AM -0700 Quanah Gibson-Mount > <qu...@zi...> wrote: > > > Has anyone gotten jython to work with unix sockets, as python does? It > > doesn't seem to support this basic feature. :/ > > > > I would note there exist java-based packages (such as Junixsocket) to do > > this, I was expecting jython would support it for python compatibility. > > Unfortunately the socket bits shipped in the Jython jar don't seem to > > allow for this. > > > Anyone? > Why can't you use Junixsocket? Python (CPython) is extensible using extension or c-extension. To do the same thing with Java (Jython), you have to use Java Native Interface (JNI). Then you can use these Java API from Jython just like any Java API. Pierre Thibault Python Developer/Développeur Python Montréal, QC *pie...@gm...* |