Mark Dickinson added the comment:

A slightly neater way to compute the result in the case that the signs differ 
is 

  div = ~((left - 1) / right)

That saves the extra multiplication and equality check.

----------

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

Reply via email to