[Cython] Automatic conversion with fixed-size C arrays

Kurt Smith kwmsmith at gmail.com
Wed Jul 30 06:54:13 CEST 2014


On Mon, Jul 28, 2014 at 11:29 PM, Kurt Smith <kwmsmith at gmail.com> wrote:

> On Mon, Jul 28, 2014 at 11:02 AM, Robert Bradshaw <robertwb at gmail.com>
> wrote:
>
>> On Sun, Jul 27, 2014 at 9:34 PM, Kurt Smith <kwmsmith at gmail.com> wrote:
>>
>> > I have sorted out all the code
>> > generation pieces and nearly have a minimal example working, and will
>> have
>> > something for you to review soon.  From what I can tell, Cython has some
>> > baked-in assumptions when it comes to assignment statements.  Telling
>> Cython
>> > that in this case, no, don't assign to something at the C level, instead
>> > generate a function call and pass in the lvalue by reference takes some
>> > doing.
>>
>> Yeah, I'm not too surprised about that.
>>
>>
> I have an initial version working for assigning a Python object to a
> fixed-size array.
>

https://github.com/cython/cython/pull/308

Do you prefer that we continue discussion on this thread, or on the PR?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cython-devel/attachments/20140729/fb296f77/attachment.html>


More information about the cython-devel mailing list