I've uploaded an updated version of the patch for #255. It is an attempt to reimplement __Pyx_PyNumber_Int() in an smarter way. Moreover, I've tried to mimic the error messages in core CPython.
Additionally, I've extended the testcase to test for user classes defining __int__()/__long__(). So far, this test pass on Linux 32 with Python 2.3 to 2.7 (recent trunk checkout) and 3.0.1 -- 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
