We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87f7ed4 commit a7dd2cbCopy full SHA for a7dd2cb
1 file changed
src/future/types/newint.py
@@ -223,9 +223,11 @@ def __pow__(self, other):
223
224
def __rpow__(self, other):
225
value = super(newint, self).__rpow__(other)
226
- if value is NotImplemented:
+ if isint(value):
227
+ return newint(value)
228
+ elif value is NotImplemented:
229
return other ** long(self)
- return newint(value)
230
+ return value
231
232
def __lshift__(self, other):
233
if not isint(other):
0 commit comments