sys.maxint in Python 3
Christian Heimes
lists at cheimes.de
Mon Apr 21 06:50:04 EDT 2008
bearophileHUGS at lycos.com schrieb:
> In some algorithms a sentinel value may be useful, so for Python 3.x
> sys.maxint may be replaced by an improvement of the following infinite
> and neginfinite singleton objects:
Python 3.0 doesn't have sys.maxint any more since Python 3's ints are of
arbitrary length. Instead of sys.maxint it has sys.maxsize; the maximum
size of a positive sized size_t aka Py_ssize_t.
Christian
More information about the Python-list
mailing list