commit | ce9de2f79a8676d6838e446cc72a9ab0a7b6cded | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Thu Jun 14 04:56:19 2001 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Thu Jun 14 04:56:19 2001 +0000 |
tree | f571266bc6a330add10799f7d0a03ab67bdab59b | |
parent | ff70d3c8d43b3ddcd4271b662dc0a029b22bd51a [diff] |
PyLong_From{Unsigned,}Long: count the # of digits first, so no more space is allocated than needed (used to allocate 80 bytes of digit space no matter how small the long input). This also runs faster, at least on 32- bit boxes.