[issue37893] pow() should disallow inverse when modulus is +-1
Mark Dickinson
report at bugs.python.org
Tue Aug 20 13:12:07 EDT 2019
Mark Dickinson <dickinsm at gmail.com> added the comment:
> While I doubt this, he may even argue that it's working correctly already ;-)
Yes, I'd argue exactly that. There's nothing ill-defined about working modulo +/-1. Z/1Z is a perfectly-well-defined ring. What's the motivation for this change?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37893>
_______________________________________
More information about the Python-bugs-list
mailing list