I've finally managed to write a more or less working patch... Look at
the test, I've tried to cover many corner cases...
1) Dag & Kurt: I bet you will be happy.
2) Robert: your eyeballs needed, please comment on this:
a) Look at the changes outside PyrexTypes.pyx, I believe they make
sense, though I would like you to confirm that.
b) In the past, you raised some concerns about __int32 from ILP64
model... A possible (and suboptimal, no overflow-safe) way of handling
that is there, though "#if 0" disabled. I've tried to take advantage
of "_PyLong_{As/From}ByteArray()", but that (in particular, the "As"
one) is somewhat harder to use, as we should pass a PyLongObject type.
--
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