[Cython] Automatic conversion with fixed-size C arrays

Robert Bradshaw robertwb at gmail.com
Fri Aug 1 06:34:22 CEST 2014


We can move to the PR, makes it easier to do line commenting.

On Tue, Jul 29, 2014 at 9:54 PM, Kurt Smith <kwmsmith at gmail.com> wrote:
> 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?
>
> _______________________________________________
> cython-devel mailing list
> cython-devel at python.org
> https://mail.python.org/mailman/listinfo/cython-devel
>


More information about the cython-devel mailing list