Re: [Cython] Py_LIMITED_API

2011-02-23 Thread Stefan Behnel
Lisandro Dalcin, 23.02.2011 16:43: Should we try to support Py_LIMITED_API for Py>=3.2? I asked the same question a while ago. I think we should, but it won't be easy. That API is pretty restricted compared to what Cython currently uses, including the internals of builtin types that we use in

Re: [Cython] Py_LIMITED_API

2011-02-23 Thread Robert Bradshaw
I think it's worth looking into, but I'm skeptical of the benefits at this point, especially compared to all the other stuff that needs doing. Specifically, I think we'll add complexity to generate more verbose and less efficient code to stick to this. I also think it might be worth keeping in mind

[Cython] Py_LIMITED_API

2011-02-23 Thread Lisandro Dalcin
Should we try to support Py_LIMITED_API for Py>=3.2? -- Lisandro Dalcin --- CIMEC (INTEC/CONICET-UNL) Predio CONICET-Santa Fe Colectora RN 168 Km 472, Paraje El Pozo 3000 Santa Fe, Argentina Tel: +54-342-4511594 (ext 1011) Tel/Fax: +54-342-4511169 _

Re: [Cython] hasattr() swallows any exception (Py<3.2)

2011-02-23 Thread Stefan Behnel
Lisandro Dalcin, 23.02.2011 01:59: On 22 February 2011 19:09, Lisandro Dalcin wrote: On 22 February 2011 18:21, Stefan Behnel wrote: Lisandro Dalcin, 22.02.2011 21:41: I'm inclined to fix the behavior for ALL Python versions to suppress only AttributeError. How? Would you implement a hasatt