> Just out of curiosity does anyone know why you get a deprecation warning if
> you pass a float to range but if you use round, which returns a float, there
> is no warning?
It has nothing to do with the round.
It's just that the warning is only shown once:
$ python
Python 2.6.5 (r265:79063, Ap
Just out of curiosity does anyone know why you get a deprecation warning if
you pass a float to range but if you use round, which returns a float, there
is no warning?
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)]
on
win32
Type "help", "copyright", "credits" or "lice