diff --git a/src/future/types/newint.py b/src/future/types/newint.py index 2c86ce18..ebc5715e 100644 --- a/src/future/types/newint.py +++ b/src/future/types/newint.py @@ -223,9 +223,11 @@ def __pow__(self, other): def __rpow__(self, other): value = super(newint, self).__rpow__(other) - if value is NotImplemented: + if isint(value): + return newint(value) + elif value is NotImplemented: return other ** long(self) - return newint(value) + return value def __lshift__(self, other): if not isint(other):