[Python-Dev] Cost-Free Slice into FromString constructors--Long
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri May 26 02:39:04 CEST 2006
Tim Peters wrote:
> PyLong_FromString() only sees the starting
> address, and-- as it always does --parses until it hits a character
> that doesn't make sense for the input base.
This is the bug, then. long() shouldn't be using
PyLong_FromString() to convert its argument, but
something that takes an address and a size. (Is
there a PyLong_FromStringAndSize()? If not, there
should be.)
--
Greg
More information about the Python-Dev
mailing list