Thank you very much for your answer. I have wondered about this for a long time.
From: Guido van Rossum <[EMAIL PROTECTED]>
To: L V <[EMAIL PROTECTED]>
Cc: python-dev@python.org
Sent: Wednesday, November 5, 2008 7:56:23 PM
Subject: Re: [Python-De
Why don't range and xrange threat floats as floats?
Is there any good reason range and xrange don't threat floats as floats but as
integers?
When I enter float arguments in a range, the floats are treated as integers. (+
some warning)
This is how I think it should work:
>>>range(0, 1, 0.1)
[0.0,