Wrapping Python - A function wrapping template

Kirk McDonald kirklin.mcdonald at gmail.com
Tue Jun 13 13:36:14 PDT 2006


Tom S wrote:
> Kirk McDonald wrote:
> 
>> This library, as it exists now, is more a proof-of-concept than a 
>> useful library, so I'm not quite prepared to release it yet.
> 
> 
> Looks sweet ! :)
> 
> 
> Hmmm... considering the code:
> 
> { "str_len", cast(PyCFunction)&func_wrap!(str_len).func, METH_VARARGS, 
> "" },
> 
> what's the purpose of 'cast(PyCFunction)&func_wrap!(str_len).func' ? 
> couldn't it be replaced by just a single 'pycFunction!(str_len)' or 
> something like this ?
> 
> 
All of that will eventually be wrapped. I could indeed tighten up the 
interface easily enough, and I have some other ideas of how to do that.

> Keep up the great work !
> 
> 
Thanks!

-Kirk McDonald



More information about the Digitalmars-d mailing list