I just spent 2 hours debugging a script only to find that integer division behaves differently from imported files to __name__ == "__main__" files.
print 365/9 # this line prints a float “40.5555555556”
now I save this as testLib.py and the import it into a new file:
import testLib # this now prints an int “40”
Is this the way Ironpython should behave?
I know the save way is to always write float(365)/9
(ipy.exe prints integers only.)