[Cython] PATCH: make kw args unpacking code compatible with C89
Stefan Behnel
stefan_ml at behnel.de
Wed Feb 25 21:33:23 CET 2009
Robert Bradshaw wrote:
>> On Wed, Feb 25, 2009 at 5:34 AM, Stefan Behnel wrote:
>>> PyObject* values[N] = {0,0,...,0}; // all 0!
>>> values[3] = non_NULL_default_value3;
>>> values[8] = non_NULL_default_value8;
>
> I would assume the compiler optimizes the statement to be as good as
> before?
That was my intuition, too. And my disassembler tells me that it avoids
setting anything more than once.
Stefan
More information about the Cython-dev
mailing list