[Cython] Cython 0.16

Vitja Makarov vitja.makarov at gmail.com
Fri Nov 4 09:58:38 CET 2011


2011/11/4 mark florisson <markflorisson88 at gmail.com>:
>>
>> That's nice. I've also implemented support for dynamic default args
>>
>> http://trac.cython.org/cython_trac/ticket/674
>>
>> I think it could be merged either.
>
> That's great, because it's a nasty bug. I see no pull request for that
> though, although I see it in one of your branches. Is it ready?
>

Yeah, you can find it here:

https://github.com/vitek/cython/commit/175c8994ead619ce8425de8fed96ffa9adb18a88

Btw, it needs to be cleaned. Now it packs default args in C struct this way:

struct defaults {
    PyObject *objects[N];
    int int_arg; // C type args here
    ...
}

So perhaps it would be better to pack that into PyObject so it would
be easier to copy default args when creating fused functions.

-- 
vitja.


More information about the cython-devel mailing list