summaryrefslogtreecommitdiff
path: root/doc/whatsnew/2.0.rst
diff options
context:
space:
mode:
authorRoy Williams <roy.williams.iii@gmail.com>2016-11-29 12:54:52 -0800
committerGitHub <noreply@github.com>2016-11-29 12:54:52 -0800
commitb84ed3d16ea83e554381b2e9d97660d42d5ede1b (patch)
tree0e6958796a8a26d5c475280404ff8a3fb9b4c1c9 /doc/whatsnew/2.0.rst
parent1b73f45d193e1710081924b591793b81883779f7 (diff)
downloadpylint-git-b84ed3d16ea83e554381b2e9d97660d42d5ede1b.tar.gz
Add a Python 3 warning about accessing sys.maxint (#1180)
Diffstat (limited to 'doc/whatsnew/2.0.rst')
-rw-r--r--doc/whatsnew/2.0.rst16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/whatsnew/2.0.rst b/doc/whatsnew/2.0.rst
index ab3e32a44..6b15de22e 100644
--- a/doc/whatsnew/2.0.rst
+++ b/doc/whatsnew/2.0.rst
@@ -293,6 +293,22 @@ New checkers
except (ConnectionError, IOError, OSError, socket.error):
pass
+* A new Python 3 checker was added to warn about accessing ``sys.maxint``. This attribute was
+ removed in Python 3 in favor of ``sys.maxsize``.
+
+ .. code-block:: python
+
+ import sys
+ print(sys.maxint)
+
+ Instead of using ``sys.maxint``, use ``sys.maxsize``
+
+ .. code-block:: python
+
+ import sys
+ print(sys.maxsize)
+
+
Other Changes
=============