We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d824e8b commit 970ae0cCopy full SHA for 970ae0c
future/builtins/misc.py
@@ -65,20 +65,20 @@
65
def pow(x, y, z=_SENTINEL):
66
"""
67
pow(x, y[, z]) -> number
68
-
+
69
With two arguments, equivalent to x**y. With three arguments,
70
equivalent to (x**y) % z, but may be more efficient (e.g. for ints).
71
72
try:
73
if z == _SENTINEL:
74
return _builtin_pow(x, y)
75
else:
76
- return _builtin_pow(x, y, z)
+ return _builtin_pow(long(x), long(y), long(z))
77
except ValueError:
78
79
return _builtin_pow(x+0j, y)
80
81
- return _builtin_pow(x+0j, y, z)
+ return _builtin_pow(long(x+0j), long(y), long(z))
82
83
# ``future`` doesn't support Py3.0/3.1. If we ever did, we'd add this:
84
# callable = __builtin__.callable
0 commit comments