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

+1 for the pow(value, -1, modulus) spelling. It should raise `ValueError` if 
`value` and `modulus` are not relatively prime.

It would feel odd to me _not_ to extend this to `pow(value, n, modulus)` for 
all negative `n`, again valid only only if `value` is relatively prime to 
`modulus`.

----------

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

Reply via email to