Getting an unexpected argument warning about the built-in range class
Hi Everyone.
In Pycharm 3 EAP (OsX) I get an warning about the built-in range class constructor being initialised with
more then one argument.
According to docs – range does accept 2 or 3 additional arguments. I'm a total python newb – however
PyCharm shouldn't recognise this as an possible error, or do I miss something here?
I'm using range to iterate in a for loop, initialising it like this:
for page in range(1, pages + 1, 1):
(I know the last argument isn't necessary, but I keep the last '1' it for sake of my own readability comfort)
In Pycharm 3 EAP (OsX) I get an warning about the built-in range class constructor being initialised with
more then one argument.
According to docs – range does accept 2 or 3 additional arguments. I'm a total python newb – however
PyCharm shouldn't recognise this as an possible error, or do I miss something here?
I'm using range to iterate in a for loop, initialising it like this:
for page in range(1, pages + 1, 1):
(I know the last argument isn't necessary, but I keep the last '1' it for sake of my own readability comfort)
1 comment
Sort by
Date
Votes
There is a known bug for Python 3.3: http://youtrack.jetbrains.com/issue/PY-10163. Please vote to get it implemented and receive updates on this issue.
Please sign in to leave a comment.
