Ammar Askar <am...@ammaraskar.com> added the comment:

And just to add on, the reason this gives you the correct result in Python 2 is 
that `/` performs integer division whereas in Python 3 the `/` operator 
provides a float as a result.

See https://docs.python.org/3/howto/pyporting.html#division for more details.

----------
nosy: +ammar2
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40446>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to