Suppose x and y are ints in moduleA.

If I put
from __future__ import division
in moduleA then x/y will produce the truediv result.

If I put
from __future__ import division
in moduleB
and
from moduleB import *
in module A
then x/y will NOT produce the truediv result
(in moduleA).

Why?
And is there some way to avoid importing
from __future__ in module after module?

Thanks,
Alan Isaac


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

Reply via email to