| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -223,9 +223,11 @@ def __pow__(self, other): | |||
| 223 | 223 | ||
| 224 | 224 | def __rpow__(self, other): | |
| 225 | 225 | value = super(newint, self).__rpow__(other) | |
| 226 | - if value is NotImplemented: | ||
| 226 | + if isint(value): | ||
| 227 | + return newint(value) | ||
| 228 | + elif value is NotImplemented: | ||
| 227 | 229 | return other ** long(self) | |
| 228 | - return newint(value) | ||
| 230 | + return value | ||
| 229 | 231 | ||
| 230 | 232 | def __lshift__(self, other): | |
| 231 | 233 | if not isint(other): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments