Bit length of int or long?
Dennis Lee Bieber
wlfraed at ix.netcom.com
Thu May 18 11:49:49 EDT 2000
On 18 May 2000 09:16:42 +0100, Michael Hudson <mwh21 at cam.ac.uk>
declaimed the following in comp.lang.python:
> ...
> >>> bitlen(2**10000L)
> inf
>
Ah, okay -- I did expect it to fail at some point with L's...
though below that point, it reads fairly clean.
Perhaps some preprocessing level to detect L's over the limit,
and subset them some how (divide by the limit, for which you know the
bit-length, and test the remains? just pondering...)
--
> ============================================================== <
> wlfraed at ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
> wulfraed at dm.net | Bestiaria Support Staff <
> ============================================================== <
> Bestiaria Home Page: http://www.beastie.dm.net/ <
> Home Page: http://www.dm.net/~wulfraed/ <
More information about the Python-list
mailing list