FYI, I just tried this out and it does work in the latest Cython.  
(Probably fixed in Pyrex by now too.)

- Robert


On May 13, 2008, at 1:58 AM, Sébastien Sablé wrote:

> Hi Greg,
>
> I tried both Pyrex 0.9.7 and 0.9.7.1, but I have an error which didn't
> occurred with previous versions:
> TypeError: 'dict' object does not support item assignment"
>
> The code where the problem happens looks like this:
>
> cdef reflect_bind(wrapped, void *addr, object o):
>      wrapped[<int>addr] = o
>
>
> By the way, thanks for Pyrex, it is a great tool; we are using it to
> migrate a big C application to Python and Pyrex is making our life  
> a lot
> easier.
>
> Thanks in advance
>
> --
> Sébastien Sablé
>
>
> Greg Ewing a écrit :
>> Pyrex 0.9.7.1 is now available:
>>
>>    http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
>>
>> This version fixes a bug in the new integer indexing
>> optimisation which causes indexing of a non-sequence type
>> with a C int to fail with a TypeError.
>>
>> What is Pyrex?
>> --------------
>>
>> Pyrex is a language for writing Python extension modules.
>> It lets you freely mix operations on Python and C data, with
>> all Python reference counting and error checking handled
>> automatically.
>>
>> _______________________________________________
>> Pyrex mailing list
>> [EMAIL PROTECTED]
>> http://lists.copyleft.no/mailman/listinfo/pyrex
>
> _______________________________________________
> Cython-dev mailing list
> [email protected]
> http://codespeak.net/mailman/listinfo/cython-dev

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to