Re: [Cython] Feature Request: expand list/tuple in 'if (... in ...):' ...

2013-01-24 Thread Stefan Behnel
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, 0x

Re: [Cython] Feature Request: expand list/tuple in 'if (... in ...):' ...

2013-01-24 Thread Christian Inci
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/24/2013 03:44 PM, Dag Sverre Seljebotn wrote: > How do you know that INT_TUPLE isn't reassigned to something else? On 01/24/2013 03:49 PM, Stefan Behnel wrote: > This is not an optimisation as it might render the code incorrect. How can > Cython

Re: [Cython] Feature Request: expand list/tuple in 'if (... in ...):' ...

2013-01-24 Thread Dag Sverre Seljebotn
On 01/24/2013 03:13 PM, Christian Inci wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Subject: Feature Request: expand list/tuple in 'if (... in ...):' ... expand list/tuple in 'if (... in ...):' on compile-time if the list/tuple contains only static values. test1: list is expanded manu

Re: [Cython] Feature Request: expand list/tuple in 'if (... in ...):' ...

2013-01-24 Thread Stefan Behnel
[moving this to cython-users] Christian Inci, 24.01.2013 15:13: > Subject: Feature Request: expand list/tuple in 'if (... in ...):' ... > > expand list/tuple in 'if (... in ...):' on compile-time if the list/tuple > contains only static values. > > test1: list is expanded manually. > test2: lis

[Cython] Feature Request: expand list/tuple in 'if (... in ...):' ...

2013-01-24 Thread Christian Inci
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Subject: Feature Request: expand list/tuple in 'if (... in ...):' ... expand list/tuple in 'if (... in ...):' on compile-time if the list/tuple contains only static values. test1: list is expanded manually. test2: list is not expanded. The output o