$ python2.4 -c 'import sys; print sys.maxint, sys.maxint == (1<<63) - 1'
9223372036854775807 True
$ python2.4 test_hi_powers.py
Test 0.2 of to_int 0.16
..
--
Ran
OK, Tim and I corresponded off-list (after that Aahz graciously
suggested direct mail). The code I have is still stand-alone,
but I get good speeds: 60% - 70% of the speed of int(string, base).
It will take a little bit to figure out how it best belongs in
the Python sources, so don't look for an
Well, wouldn't you know it.
I get the code right and mess up the directions.
Scott David Daniels wrote:
> if you build this module, I'd suggest using
> "from to_int import chomp" to get a function that works like int
> (producing a long when needed and so on).
Well, actually it is a bit more tha