[Cython] read-only memory views

Robert Bradshaw robertwb at gmail.com
Wed Sep 19 16:49:28 CEST 2012


On Wed, Sep 19, 2012 at 12:06 AM, Christoph Groth <cwg at falma.de> wrote:
> Robert Bradshaw <robertwb at gmail.com>
> writes:
>
>> Coincidentally, I actually implemented rudimentary const support a
>> couple of days ago. It's not perfect, but at least it allows you to
>> provide the correct declarations to deal with const polluted^H^H^H^H
>> correct code (including const c++ class methods, for which there was
>> simply no workaround). I just need to write some tests before I feel
>> comfortable pushing it.
>>
>> That said, I think a flag is a good fit here, though const could work
>> as well.
>
> So let's wait for Robert's const support and re-examine the situation
> when it's there.

https://github.com/cython/cython/commit/8c4a629904de8c21cd655bb63d8e1ea1ab89142f


More information about the cython-devel mailing list