[PythonCE] __future__, division
David L. Kashtan
kashtan at Validus.Com
Mon Jul 19 07:17:45 CEST 2004
> Since 2.2 if you import division from __future__, then you can do this:
> >>> from __future__ import division
> >>> 5/3
> As if you whould have done float division
> >>> 5//3
This does work if you don't do it as direct input to the pcceshell
(i.e. if it is in a file). Its because the __future__ import to enable
the division feature is only something done in the compiler and the
input into the pcceshell does not go through the compiler.
This is really not worth fixing.
More information about the PythonCE