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
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to