<br><div><span class="gmail_quote">On 5/25/06, <b class="gmail_sendername">Guido van Rossum</b> <<a href="mailto:guido@python.org">guido@python.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>If you really need this for speed, I recommend you make it a custom extension.<br><br></blockquote></div>
The custom extension is a good idea, and what we do now. But now
that the long algorithm is so fast, it would be nice to expose
it at least at the C level to use a substring. Any solution--be it
buffer based or even an module could have no reuse of the code
without an End Pointer. If we added the end pointer to a FromSubstring
(or somesuch) function (leaving PyLong_FromString alone), it would be
easily reused from any parsing module. Assuming it didn't have any
negative performance implication.