numeric limits?

Gary Herron gherron at islandtraining.com
Thu Jun 6 22:27:46 CEST 2002


On Thursday 06 June 2002 01:15 pm, David Abrahams wrote:
> Is there some straightforward way to find out the range of a Python Int (in
> code)?

Use sys.maxint :

>>> import sys
>>> sys.maxint
2147483647

Gary Herron






More information about the Python-list mailing list