Re: [Cython] weird declarations in fused types C code

2012-05-11 Thread Stefan Behnel
mark florisson, 11.05.2012 13:00: > On 11 May 2012 11:54, mark florisson wrote: >> On 11 May 2012 11:44, mark florisson wrote: >>> On 11 May 2012 07:38, Stefan Behnel wrote: while trying to replace the "import sys; if sys.version_info >= (3,0)" in the fused types dispatch code by the more

Re: [Cython] weird declarations in fused types C code

2012-05-11 Thread mark florisson
On 11 May 2012 11:54, mark florisson wrote: > On 11 May 2012 11:44, mark florisson wrote: >> On 11 May 2012 07:38, Stefan Behnel wrote: >>> Hi, >>> >>> while trying to replace the "import sys; if sys.version_info >= (3,0)" in >>> the fused types dispatch code by the more straight forward "if >>>

Re: [Cython] weird declarations in fused types C code

2012-05-11 Thread mark florisson
On 11 May 2012 11:44, mark florisson wrote: > On 11 May 2012 07:38, Stefan Behnel wrote: >> Hi, >> >> while trying to replace the "import sys; if sys.version_info >= (3,0)" in >> the fused types dispatch code by the more straight forward "if >> PY_MAJOR_VERSION >= 3" (before I came to think that

Re: [Cython] weird declarations in fused types C code

2012-05-11 Thread mark florisson
On 11 May 2012 07:38, Stefan Behnel wrote: > Hi, > > while trying to replace the "import sys; if sys.version_info >= (3,0)" in > the fused types dispatch code by the more straight forward "if > PY_MAJOR_VERSION >= 3" (before I came to think that this particular case > only guards useless code that