Jan-29-2020, 10:53 AM
(Jan-29-2020, 06:07 AM)perfringo Wrote: sys.maxsize():
Quote:An integer giving the maximum value a variable of type Py_ssize_t can take. It’s usually 2**31 - 1 on a 32-bit platform and 2**63 - 1 on a 64-bit platform.
Look also at PEP237 - Unifying Long Integers and Integers
Thanks for your help. The documentation of range also explained the problem.
Quote:Ranges containing absolute values larger than sys.maxsize are permitted but some features (such as len()) may raise OverflowError.