Christian Inci, 24.01.2013 16:19:
> On 01/24/2013 03:49 PM, Stefan Behnel wrote:
>> If you prefer keeping the set of integer values at a separate place, this
>> should work:
> 
>>     DEF INT_TUPLE = (0x66, 0x67, 0x2e,
>>                      0x36, 0x3e, 0x26, 0x64,
>>                      0x65, 0xf2, 0xf3, 0xf0)
> 
>> (mind the upper case "DEF").
> 
> According to 
> 'http://docs.cython.org/src/userguide/language_basics.html#compile-time-definitions',
>  this will only work using int, long, float or str.

Makes sense. It should be doable to make this work by copying AST nodes
around instead of their evaluated Python values. Doesn't sound all that
difficult.

Stefan
_______________________________________________
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel

Reply via email to