[issue22198] Odd floor-division corner case

Mark Dickinson report at bugs.python.org
Fri Apr 17 18:15:42 CEST 2015


Mark Dickinson added the comment:

Thanks for the ping, and sorry for forgetting about this.

I'm -1 on applying this patch.  I agree that floor division has some corner case issues (of which this is only one).  But there's no clear agreement on what the right answer is, and I don't think making a tiny change to one corner case is worth it in terms of code churn.  And making several such tiny changes over the course of different Python releases is something we'd definitely want to avoid.

Ideally, there'd be a once-and-for-all agreement on exactly what should happen with *all* the corner cases; we'd fix the code to implement exactly that, and then we could forget about it.  But without a standard to guide us, I don't think that's going to happen.

So my vote is to close as "wont fix".

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22198>
_______________________________________


More information about the Python-bugs-list mailing list