__div__ not recognized automatically

Anton81 usenet1 at anton.e4ward.com
Tue Nov 7 10:18:52 EST 2006


> If you have the
> 
> from __future__ import division
> 
> statement, you need to override __truediv__(), not __div__()

That worked after I also added
from __future__ import division
to all other modules I created.

Is it possible that there appears an inconsistency if the division is
imported in only some of the modules?

Anton



More information about the Python-list mailing list