[issue36027] Consider adding modular multiplicative inverse to the math module
Raymond Hettinger
report at bugs.python.org
Tue Feb 19 02:23:43 EST 2019
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
> If it's spelled this way, put the modulus argument last?
Yes, that makes sense.
> Years ago Guido signed off on spelling this
>
> pow(value, -1, modulus)
+1 ;-)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36027>
_______________________________________
More information about the Python-bugs-list
mailing list