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 terry.reedy
Recipients docs@python, larry, prasechen, terry.reedy
Date 2020-09-04.23:38:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1599262729.67.0.282413638563.issue41719@roundup.psfhosted.org>
In-reply-to
Content
The original title was "Why does not range() support decimals?".  In general, such questions should be directed to question forums, such as https://mail.python.org/mailman/listinfo/python-list or stackoverflow.com.

This question has been answered on both, with alternatives, in particular on
https://stackoverflow.com/questions/477486/how-to-use-a-decimal-range-step-value
https://stackoverflow.com/questions/12403411/range-with-float-step-argument
and other duplicates.

I am leaving this open to add this frequent question to our FAQ, in particular at
https://docs.python.org/3/faq/programming.html#sequences-tuples-lists
with 'range' added.

This answer should include how to use range to get what people generally want.
History
Date User Action Args
2020-09-04 23:38:49terry.reedysetrecipients: + terry.reedy, larry, docs@python, prasechen
2020-09-04 23:38:49terry.reedysetmessageid: <1599262729.67.0.282413638563.issue41719@roundup.psfhosted.org>
2020-09-04 23:38:49terry.reedylinkissue41719 messages
2020-09-04 23:38:48terry.reedycreate