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 corona10, mark.dickinson, vstinner
Date 2020-01-23.15:25:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
So the risk here is that by adding the floordiv fast path, the division code is duplicated, and that increases the risk of accidentally losing the invariant that `a // b` is interchangeable with `divmod(a, b)[0]` (e.g., because someone decides to "fix" the floor float division). That and the usual increased maintenance cost of more code.

Whether the optimization is worth the cost, I'm not sure. My gut feeling is not, but others may have different views.
Date User Action Args
2020-01-23 15:25:22mark.dickinsonsetrecipients: + mark.dickinson, vstinner, corona10
2020-01-23 15:25:21mark.dickinsonsetmessageid: <>
2020-01-23 15:25:21mark.dickinsonlinkissue39434 messages
2020-01-23 15:25:21mark.dickinsoncreate