another newbie question

Tim Golden tim at westpark-club.org.uk
Sun Nov 14 10:01:15 EST 2010


On 14/11/2010 3:00 PM, Nitin Pawar wrote:
>> I'm trying to get floating point division to work; I'm using Python
>> 2.6.5. When I enter 'from _future_ import division' at the command
>> line, I get the ImportError, no module named _future_. How can I
>> rectify this?

That should be two underscores, not one:

from __future__ import division

TJG



More information about the Python-list mailing list