[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

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