[Cython] Python array support (#113)
markflorisson88 at gmail.com
Sun May 6 11:05:58 CEST 2012
On 6 May 2012 09:56, mark florisson <markflorisson88 at gmail.com> wrote:
> On 5 May 2012 20:50, Stefan Behnel <stefan_ml at behnel.de> wrote:
>> This looks ok to me now. There have been objections back when we discussed
>> the initial patch for array.array support, so what do you think about
>> merging this in?
>> cython-devel mailing list
>> cython-devel at python.org
> Great, I think it can be quite useful for some people. I think only
> some documentation is missing.
> Also, very minor complaint, the way it allocates shape, strides and
> the format string in __getbuffer__ is weird and complicated for no
> good reason. I think it's better to declare two Py_ssize_t scalars or
> one-sized arrays as class attributes and one char array, and use
> those (then you can also get rid of __releasebuffer__).
Or hm, that might be a problem with their variable nature? Then the
shape of the buffer would suddenly change... Maybe malloc is better in
More information about the cython-devel