Mark Dickinson <dicki...@gmail.com> added the comment: Thanks for reviewing!
Updated patch, that addresses points 1-3. For 4, there's no need for the old code, since "self - divmod_near(self, 10**-n)[1]" is enough. And I didn't like the old algorithm anyway; the new one is more straightforward. For 5, I've added a Python version of divmod_near to the comments. ---------- Added file: http://bugs.python.org/file17462/div_nearest2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8817> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com