"Dan Jacobson" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Here's the deal: I have to maintain this long gone guy's programs and
> lately they've been saying
> ./north_pass.py:14: DeprecationWarning: integer argument expected, got 
> float
>  fl=range(1000*(math.floor(25000*f2m/1000)),46000*f2m,1000)

The warning is from the range function.  If f2m is float, so too the first 
2 args.  Either convert f2m to int first or both args to int.  The second 
is what happens now.  A long too large to convert to int also raises an 
error.

Terry Jan Reedy



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to