]> granicus.if.org Git - python/commit
Removed PyInt_GetMax and sys.maxint
authorChristian Heimes <christian@cheimes.de>
Tue, 4 Dec 2007 23:02:19 +0000 (23:02 +0000)
committerChristian Heimes <christian@cheimes.de>
Tue, 4 Dec 2007 23:02:19 +0000 (23:02 +0000)
commita37d4c693a024154093b36a612810c3bd72d9254
treed8c061b9356d7bf8f444bcfd7869c1ac5bec9f3c
parent327858ef2c4512937a1333212a3b46a62c18ccc3
Removed PyInt_GetMax and sys.maxint
I replaced sys.maxint with sys.maxsize in Lib/*.py. Does anybody see a problem with the change on Win 64bit platforms? Win 64's long is just 32bit but the sys.maxsize is now 2**63-1 on every 64bit platform.
Also added docs for sys.maxsize.
47 files changed:
Doc/library/itertools.rst
Doc/library/sys.rst
Include/longobject.h
Lib/UserString.py
Lib/_abcoll.py
Lib/ctypes/__init__.py
Lib/ctypes/util.py
Lib/email/generator.py
Lib/gzip.py
Lib/inspect.py
Lib/mhlib.py
Lib/sre_parse.py
Lib/subprocess.py
Lib/test/buffer_tests.py
Lib/test/list_tests.py
Lib/test/pickletester.py
Lib/test/regrtest.py
Lib/test/string_tests.py
Lib/test/test_builtin.py
Lib/test/test_bytes.py
Lib/test/test_compile.py
Lib/test/test_descr.py
Lib/test/test_format.py
Lib/test/test_grammar.py
Lib/test/test_hexoct.py
Lib/test/test_index.py
Lib/test/test_itertools.py
Lib/test/test_list.py
Lib/test/test_long.py
Lib/test/test_marshal.py
Lib/test/test_multibytecodec.py
Lib/test/test_multibytecodec_support.py
Lib/test/test_range.py
Lib/test/test_slice.py
Lib/test/test_struct.py
Lib/test/test_sys.py
Lib/test/test_threading.py
Lib/test/test_types.py
Lib/test/test_unicode.py
Lib/test/test_xmlrpc.py
Lib/zipfile.py
Misc/NEWS
Objects/longobject.c
Python/sysmodule.c
Tools/scripts/h2py.py
Tools/unicode/makeunicodedata.py
setup.py