> Alan Isaac wrote: > > 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).
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The statement "from __future__ import division" in ModuleB influences > the byte codes generated when ModuleB is compiled. It doesn't influence > the byte code generated in ModuleA. > Start python with the "-Qnew" option. That is pretty good, but it affects every module I use, not just my (selected) modules. Thanks, Alan PS Any news on when true division will be the default? -- http://mail.python.org/mailman/listinfo/python-list