by bretthoerner · 17y ago · 0 comments
Zen of Python: "There should be one-- and preferably only one --obvious way to do it."
Sure, there are other ways to do it in Python, but it'd be frowned upon to use something like 3.upto(6) rather than a standard range() that everyone is used to. Readability matters.
Note: I used Python daily at work and for open source projects. I also use Ruby for open source projects. I like them both.
This makes me curious how much more frequently range is used than xrange and in what situations it's preferable.