Well, I have other one for you then ;-), again Py3.0
Please look at 'Objects/classobject.c' , and tell me what do you think
about this patch. This guy was causing the segfaults with Cython's
'classmethod' implementation
Index: Objects/classobject.c
===================================================================
--- Objects/classobject.c (revision 63598)
+++ Objects/classobject.c (working copy)
@@ -502,7 +502,7 @@
instancemethod_descr_get(PyObject *descr, PyObject *obj, PyObject *type) {
register PyObject *func = PyInstanceMethod_GET_FUNCTION(descr);
if (obj == NULL)
- return func;
+ return Py_INCREF(func), func;
else
return PyMethod_New(func, obj);
}
On 5/25/08, Stefan Behnel <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
> Stefan Behnel wrote:
> > Could you ask about that on the Py3k list?
>
>
> Never mind, I filed a bug report on the bug tracker.
>
> http://bugs.python.org/issue2963
>
>
> Stefan
> _______________________________________________
> Cython-dev mailing list
> [email protected]
> http://codespeak.net/mailman/listinfo/cython-dev
>
--
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev