On Thu, 2007-09-06 at 10:12 +0200, Tom Cato Amundsen wrote:
> On Thu, Sep 06, 2007 at 12:38:40AM +0200, Dwayne Bailey wrote:
> > Just a heads up and a request for help.
> > Some tasks that I need help with:
> > * I'm using SWIG to create the Python wrapper and have hit my head
> > against a brick wall and my almost zero knowledge of C, and the chill I
> > get down my spine when I see pointers is not helping.
> 
> If you dislike SWIG, and can use python 2.5, then there is the ctypes
> module in the standard python library. I don't know, but it is quite
> possible you can use ctypes for python 2.4 too, if you compile it
> yourself.

Great suggestion.  I did a little hacking and got some simple things
working.  I don't dislike SWIG but ctypes seems to be much cleaner to
implement and you are actually in control.

In my simple test I parsed a broken PO file and it didn't Segfault so I
guess that is a bonus!

ctypes is included in 2.5 but there are also packages for 2.3 and 2.4
which covers the version that the toolkit is interacting with.

I'm going to play with this a bit and see if it isn't our solution.

-- 
Dwayne Bailey
Translate.org.za

+27-12-460-1095 (w)
+27-83-443-7114 (cell)


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Translate-pootle mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/translate-pootle

Reply via email to