Message364872
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:36 | tim.peters | set | recipients:
+ tim.peters, rhettinger, mark.dickinson, serhiy.storchaka |
2020-03-23 18:19:36 | tim.peters | set | messageid: <1584987576.82.0.0448955047893.issue37319@roundup.psfhosted.org> |
2020-03-23 18:19:36 | tim.peters | link | issue37319 messages |
2020-03-23 18:19:36 | tim.peters | create | |
|