Anelok: next round of case parts 1/2: fixing issues

Bas Wijnen wijnen at debian.org
Sat Jan 24 22:32:46 UTC 2015


On Wed, Jan 21, 2015 at 10:32:07AM -0300, Werner Almesberger wrote:
>    This turned out to be me mistaking Python for Perl. Python copied C's
>    handling of division and integers. So 3 / 2 is 1, not 1.5.

If you want to be future-proof, you probably want to use python3, in
which 3/2 == 1.5 (and 4/2 == 2.0, not 2); you have to specify integer
division explicitly as 3//2 there.

Thanks,
Bas



More information about the discussion mailing list


interactive