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 <1579793121.99.0.605662407848.issue39434@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-01-23 15:25:22mark.dickinsonsetrecipients: + mark.dickinson, vstinner, corona10
2020-01-23 15:25:21mark.dickinsonsetmessageid: <1579793121.99.0.605662407848.issue39434@roundup.psfhosted.org>
2020-01-23 15:25:21mark.dickinsonlinkissue39434 messages
2020-01-23 15:25:21mark.dickinsoncreate