[issue28880] range(i, j) doesn't work
New submission from John Henning: When attempting to use range(I, j) command in Windows 10 command prompt, the latest version of Python would simply echo what was typed. See below: >>> range(7) range(0, 7) >>> range(0, 9) range(0, 9) >>> range(1, 10, 3) range(1, 10, 3) >>> -- components: Regular Expressions messages: 282449 nosy: ezio.melotti, genetics_jo, mrabarnett priority: normal severity: normal status: open title: range(i, j) doesn't work type: behavior versions: Python 3.7 ___ Python tracker <http://bugs.python.org/issue28880> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28880] range(i, j) doesn't work
John Henning added the comment: Right about the command prompt! My bad. However, the new language you provided gives me the following: >>> list(range(9)) Traceback (most recent call last): File "", line 1, in TypeError: 'list' object is not callable >>> list(range(0, 10)) Traceback (most recent call last): File "", line 1, in TypeError: 'list' object is not callable >>> list(range(0, 10, 2)) Traceback (most recent call last): File "", line 1, in TypeError: 'list' object is not callable >>> -- ___ Python tracker <http://bugs.python.org/issue28880> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28880] range(i, j) doesn't work
John Henning added the comment: Ha! Thanks! Restarted python and now that works. Sorry for the trouble! Trying to teach myself python working through the python tutorial and hit this problem. -- ___ Python tracker <http://bugs.python.org/issue28880> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com