ctypes question about call by reference

Lawrence Oluyede rhymes at myself.com
Sun Sep 24 11:57:36 EDT 2006


Oliver Andrich <oliver.andrich at gmail.com> wrote:
> - ExceptionType is an enum
> - MagickWand is somewhat strange, but so far it works fine without any
> type mangling.
> 
> How would I wrap this thing using ctypes? Can anybody help me with that?

First thing first: you have to identify how ExceptionType and MagickWand
are composed of. Then you can start wrapping them following the
instructions in the tutorial:
http://docs.python.org/lib/ctypes-ctypes-tutorial.html

-- 
Lawrence - http://www.oluyede.org/blog
"Nothing is more dangerous than an idea
if it's the only one you have" - E. A. Chartier



More information about the Python-list mailing list