This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients rhettinger, serhiy.storchaka, tim.peters
Date 2020-12-31.01:28:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609378109.7.0.519311456453.issue42772@roundup.psfhosted.org>
In-reply-to
Content
Upon further reflection, I think these cases should raise a TypeError because the meaning is ambiguous:

    randrange(1000, step=10) # Could only mean start=0 stop=1000 step=10

but that conflicts with:

    randrange(1000, None, 100)  # Has no reasonable interpretation

For comparison, this currently raises a TypeError because None isn't a sensible argument for stop:

    range(1000, None, 100)
History
Date User Action Args
2020-12-31 01:28:29rhettingersetrecipients: + rhettinger, tim.peters, serhiy.storchaka
2020-12-31 01:28:29rhettingersetmessageid: <1609378109.7.0.519311456453.issue42772@roundup.psfhosted.org>
2020-12-31 01:28:29rhettingerlinkissue42772 messages
2020-12-31 01:28:29rhettingercreate