Robert Bradshaw wrote:

> On Oct 13, 2008, at 1:44 PM, Dag Sverre Seljebotn wrote:
> 
>>cdef Point p = {color: color, x: x, y: y}
>>
>>That is, without string keys, but rather some magic keys.
> 
> As a (weak) counter argument, I found myself forgetting the quotes
> when testing, and it's not much more magic than the magic string kwds  
> arguments keys.

But it's inconsistent, because it suggests evaluating
an expression to get the key, as in a dict constructor.

A compromise might be

   cdef Point p = {color = color, x = x, y = y}

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

Reply via email to