[New-bugs-announce] [issue29160] `pow` with three int arguments works like it had two arguments

Pavel Chuvakhov report at bugs.python.org
Wed Jan 4 17:34:57 EST 2017


New submission from Pavel Chuvakhov:

Standard `pow` function of three integer arguments should result in a reminder `(x**y) % z`. It seems that `pow(x,y,z)` ignores `%z` operation if type(z) is not `int`. This happens also in the cases when `z` has type numpy.int32, numpy.int64, etc. I consider such a behavior of `pow` as a bug to be fixed.

Thank you for your attantion, guys!
Best wishes, Pavel.

----------
components: Distutils
files: pow-bug_report.py
messages: 284675
nosy: dstufft, eric.araujo, pch
priority: normal
severity: normal
status: open
title: `pow` with three int arguments works like it had two arguments
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file46146/pow-bug_report.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29160>
_______________________________________


More information about the New-bugs-announce mailing list