Mark Dickinson <dicki...@gmail.com> added the comment:

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.

----------

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

Reply via email to