[issue37893] pow() should disallow inverse when modulus is +-1
Mark Dickinson
report at bugs.python.org
Tue Aug 20 13:13:41 EDT 2019
Mark Dickinson <dickinsm at gmail.com> added the comment:
> Z/1Z is a perfectly-well-defined ring.
More to the point, it's a perfectly well-defined ring in which every element is invertible. That's why the Euler phi function has phi(1) = 1 (rather than phi(1) = 0), for example.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37893>
_______________________________________
More information about the Python-bugs-list
mailing list