How to parsing a sequence of integers

Joe Strout joe at
Fri Dec 19 16:23:10 CET 2008

Peter Otten wrote:

> If you are using Python 2.x:
> ...
> So you better throw in a float(...):

Or, add

   from __future__ import division

at the top of the file.  I put this at the top of all my Python files, 
whether I expect to be dividing or not.  It just saves grief.

- Joe

More information about the Python-list mailing list