This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients jfu33.4, mark.dickinson
Date 2021-02-03.14:03:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1612361008.17.0.132399818797.issue43116@roundup.psfhosted.org>
In-reply-to
Content
Python's `//` operator does floor division: that is, the (true) quotient is converted to an integer by taking the floor (rounding towards -infinity) instead of truncating (rounding towards zero).

So indeed it's not a bug. The behaviour is documented here: https://docs.python.org/3/reference/expressions.html#binary-arithmetic-operations

See also #43034
History
Date User Action Args
2021-02-03 14:03:28mark.dickinsonsetrecipients: + mark.dickinson, jfu33.4
2021-02-03 14:03:28mark.dickinsonsetmessageid: <1612361008.17.0.132399818797.issue43116@roundup.psfhosted.org>
2021-02-03 14:03:28mark.dickinsonlinkissue43116 messages
2021-02-03 14:03:28mark.dickinsoncreate