numeric limits?

Emile van Sebille emile at fenx.com
Thu Jun 6 16:22:37 EDT 2002


"David Abrahams" <david.abrahams at rcn.com> wrote in message
news:adofuv$6v$1 at bob.news.rcn.net...
> Is there some straightforward way to find out the range of a Python
Int (in
> code)?
> The best I could do was to probe it using tricks like:
>
> x = 1
> while (x << 1) > 0:
>     x <<= 1
>

Do you mean sys.maxint ?


--

Emile van Sebille
emile at fenx.com

---------




More information about the Python-list mailing list