From: Frank W. <fwi...@gm...> - 2009-03-03 23:15:24
|
On Tue, Mar 3, 2009 at 5:21 PM, John Szakmeister <jo...@sz...> wrote: > It's been hard to find time with Real Life, but I'm staying for > sprints and was looking to help out with ctypes support. I know C > *very* well. > > I'd be more than happy to help while I'm there. FWIW, I've looked at > the actual ctypes module, and was heading down the path of > reimplementing that in Python and use jna to actually communicate to > the shared library... but looking at PyPy, they've done all the hard > work. What is that we need to expose? What needs to be written? Jim Baker started to port over PyPy's support. The result so far is [jython-home]/LIb/_rawffi.py and [jython-home]/Lib/test/test__rawffi.py. It looks like Jim was porting test by test from the same file in PyPy (test__rawffi.py). If you are already familiar with PyPy's approach this stuff should look pretty familiar. We are using JNA as the internal part for the parts that PyPy does in rpython, then we plan to just use the pure python parts from PyPy as-is. I still hope to freeze this Friday - do you think you could have it together by then? It would be great if you could, it was a hard decision for me to drop it. BTW, even if you do just push it forward without it being enough for Friday, I think we'd still like to get it in for 2.5.1. Thanks! -Frank |