Re: [Python-Dev] to_int -- oops, one step missing for use.

2005-11-12 Thread jepler
$ python2.4 -c 'import sys; print sys.maxint, sys.maxint == (163) - 1'
9223372036854775807 True
$ python2.4 test_hi_powers.py 
Test 0.2 of to_int 0.16
..
--
Ran 70 tests in 0.006s

OK


pgpq5Yx7ylgEf.pgp
Description: PGP signature
___
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


[Python-Dev] to_int -- oops, one step missing for use.

2005-11-09 Thread Scott David Daniels
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 than that.
 from to_int import chomp, _flag; _flag(1)

This sets a flag to suppress the return of the length along
with the value from chomp.

--Scott David Daniels
[EMAIL PROTECTED]

___
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