[Tutor] "from future import division"?

Abel Daniel abli@freemail.hu
Tue Jul 15 02:15:01 2003


>  from future import division
> 
> or invoke python as
> 
>  python -Qnew foo.py
> 
> the -Qnew option works, but the import does not:
> 
>   ImportError: No module named future
it's 
from __future__ import division

note the two underlines on both sides of 'future'.

(If the underlines are missing in the book, it's most likely a typo.)

Abel Daniel