"Luke Geelen" <[email protected]> wrote in message 
news:[email protected]...
> Op zaterdag 15 februari 2014 11:04:17 UTC+1 schreef Frank Millman:
>> "Luke Geelen" <[email protected]> wrote in message
>>
>> news:[email protected]...
>>
[...]
>>
>> You can reproduce the python3 behaviour in python2 by adding a 'future' 
>> directive -
>>
>> >>> from __future__ import division
>>
>> >>> 10/3
>>
>> 3.3333333333333335
>>
>
> how (and where) would i add this rule into a script? by import or the 
> calculation?

Treat it like any other import - add it as a new line at the top of your 
script.

Frank



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

Reply via email to