Terry J. Reedy <tjre...@udel.edu> added the comment:
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. ---------- assignee: -> docs@python components: +Documentation -Argument Clinic nosy: +docs@python, terry.reedy stage: -> needs patch type: compile error -> versions: +Python 3.10, Python 3.9 -Python 3.5, Python 3.6, Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41719> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com