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 tim.peters
Recipients mark.dickinson, rhettinger, serhiy.storchaka, tim.peters
Date 2020-03-23.18:19:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
It's neither "bug" nor "feature" - it's an inherited quirk CPython maintains to avoid annoying users for no good reason.

If you absolutely have to "do something", how about adding a mere footnote?  The docs already imply the args have the same restrictions as for `range()`.  A footnote could add that, to preserve historical compatibility, CPython also accepts arguments `x` for which `int(x) == x`, and uses `int(x)` in such cases - but portable code shouldn't rely on that.

But nobody cares, so putting that in the main part of the docs would also annoy 99.99% of users for no good reason ;-)
Date User Action Args
2020-03-23 18:19:36tim.peterssetrecipients: + tim.peters, rhettinger, mark.dickinson, serhiy.storchaka
2020-03-23 18:19:36tim.peterssetmessageid: <>
2020-03-23 18:19:36tim.peterslinkissue37319 messages
2020-03-23 18:19:36tim.peterscreate