Re: [Cython] CF based type inference

2012-05-11 Thread Robert Bradshaw
On Fri, May 11, 2012 at 8:56 AM, Stefan Behnel wrote: > Robert Bradshaw, 11.05.2012 17:48: >> On Tue, May 8, 2012 at 11:22 PM, Stefan Behnel wrote: >>> Robert Bradshaw, 09.05.2012 00:12: On Tue, May 8, 2012 at 6:47 AM, Vitja Makarov wrote: > 2012/5/8 Stefan Behnel: >> Vitja has rebas

Re: [Cython] CF based type inference

2012-05-11 Thread Stefan Behnel
Robert Bradshaw, 11.05.2012 17:48: > On Tue, May 8, 2012 at 11:22 PM, Stefan Behnel wrote: >> Robert Bradshaw, 09.05.2012 00:12: >>> On Tue, May 8, 2012 at 6:47 AM, Vitja Makarov wrote: 2012/5/8 Stefan Behnel: > Vitja has rebased the type inference on the control flow, so I wonder if

Re: [Cython] CF based type inference

2012-05-11 Thread Robert Bradshaw
On Tue, May 8, 2012 at 11:22 PM, Stefan Behnel wrote: > Robert Bradshaw, 09.05.2012 00:12: >> On Tue, May 8, 2012 at 6:47 AM, Vitja Makarov wrote: >>> 2012/5/8 Stefan Behnel: Vitja has rebased the type inference on the control flow, so I wonder if this will enable us to properly infer th

[Cython] CEP 1001 - Custom PyTypeObject extensions

2012-05-11 Thread Dag Sverre Seljebotn
This comes from a refactor of the work on CEP 1000: A PEP proposal, with a hack for use in current Python versions and in the case of PEP rejection, that allows 3rd party libraries to agree on extensions to PyTypeObject. http://wiki.cython.org/enhancements/cep1001 If this makes it as a PEP, I

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