RE: [ctypes-users] jython
by Bradley Schatz other posts by this author
Nov 3 2005 4:53PM messages near this date
[ctypes-users] jython
|
[ctypes-users] How to set the include directories for the code generator of ctypes?
Hi Axel,
I have ported a large portion of Thomas's code to provide similar
functionality to Java. Uninspiringly, I have called it ctypes4j
http://ctypes4j.sourceforge.net/. Additionally, it contains the beginnings
of a python library bridging the ctypes4j API to that defined by Thomas in
ctypes.
Despite the low version number, it has been pretty stable for about a year
or so now.
Best regards,
bradley
_____
From: ctypes-users-admin@[...].net
[mailto:ctypes-users-admin@[...].net] On Behalf Of Axel Seibert
Sent: Thursday, 3 November 2005 8:45 PM
To: ctypes-users@[...].net
Subject: [ctypes-users] jython
Dear list!
For accessing DLLs from python Thomas provides us with ctypes.
For accessing DLLs from jython/java, there is JNI. From what I've seen on
the web, from a user's point of view, they look quite similar, in other
words you load the DLL, define the c structures as classes and go ahead.
I wonder if anybody has thought or maybe even implemented a layer that will
enable a ctypes programm to run in jython, using the JNI approach? I could
very well imagine that by modifying the
xml2py script one could auto-gerenate the stub code for jython as well. Only
problem is, that
I don't speak java.
Any thoughts?
Thanx,
Axel
Attachments:
unknown1
unknown2
Thread:
Axel Seibert
Bradley Schatz
|