This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients mark.dickinson, pablogsal, rhettinger, skrah, steven.daprano, tim.peters
Date 2019-02-19.10:35:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
+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`.
Date User Action Args
2019-02-19 10:35:09mark.dickinsonsetrecipients: + mark.dickinson, tim.peters, rhettinger, steven.daprano, skrah, pablogsal
2019-02-19 10:35:09mark.dickinsonsetmessageid: <>
2019-02-19 10:35:09mark.dickinsonlinkissue36027 messages
2019-02-19 10:35:09mark.dickinsoncreate