2to3: Apply renames fixer. #3238

Merged
merged 1 commit into from Apr 14, 2013

Projects

None yet

1 participant

@charris
Member
charris commented Apr 13, 2013

Rename sys.maxint to sys.maxsize when the Python version is >= 3. This
change was made in Python 3 because all integers are 'long' integers and
their maximum value bears no relationship to the C type that int used to
represent. The new sys.maxsize value is the maximum value of Py_ssize_t.
This change has not led to any reported problems since the numpy 1.5
release.

Closes #3082

@charris charris 2to3: Apply renames fixer.
Rename sys.maxint to sys.maxsize when the Python version is >= 3.  This
change was made in Python 3 because all integers are 'long' integers and
their maximum value bears no relationship to the C type that int used to
represent. The new sys.maxsize value is the maximum value of Py_ssize_t.
This change has not led to any reported problems since the numpy 1.5
release.

Closes #3082
ffdad17
@charris
Member
charris commented Apr 14, 2013

Still looks good in the morning. The substitution of sys.maxsize for sys.maxint in Python 3 has been done by the 2to3 conversion since Numpy 1.5, so this should be good.

@charris charris merged commit ff464ef into numpy:master Apr 14, 2013

1 check passed

default The Travis build passed
Details
@charris charris deleted the charris:2to3-apply-renames-fixer branch Apr 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment