for with decimal values?

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Sun May 3 03:13:40 EDT 2009


On Sat, 02 May 2009 11:01:39 -0700, bearophileHUGS wrote:

> Esmail:
>> Is there a Python construct to allow me to do something like this:
>>     for i in range(-10.5, 10.5, 0.1):
> 
> Sometimes I use an improved version of this:
> http://code.activestate.com/recipes/66472/


Care to contribute your improvements back to the recipe? Or at least 
here? I for one am curious to see how you do it.


-- 
Steven



More information about the Python-list mailing list