[Python-3000] about the status of PyNumberMethods
Lisandro Dalcin
dalcinl at gmail.com
Fri May 9 23:35:12 CEST 2008
Yesterday I was working on a patch for Cython to make the generated C
code works from Python 2.3 to 2.6 and also 3.0.
After four hours of carefully diving in Python sources from 2.3 to 3.0
and finishing the patch, the only stuff I would object from the
current codebase of Py3K is the status of PyNumberMethods.
A slot changed its name (nb_nonzero to nb_bool), some slots are gone
(nb_[inplace_]divide) and others are unused (nb_hex, nb_oct, and
nb_coerce). What are the long term plans for this?
BTW, I was also looking at the very, very clever hackery implementing
the method cache for types. My English is crude, but perhaps the
Py_TPFLAGX_[HAVE|VALID]_VERSION_TAG could be renamed to something like
XXX_MCACHE_TAG or XXX_METHODCACHE_TAG, that IMHO is more descriptive
of what those flag are intendef for...
--
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
More information about the Python-3000
mailing list