Changes between Version 1 and Version 2 of Ticket #24247
 Timestamp:
 11/20/17 11:33:05 (4 years ago)
Legend:
 Unmodified
 Added
 Removed
 Modified

Ticket #24247 – Description
v1 v2 1 1 `__pow__` is harder than most other arithmetic coercions because you sometimes want the exponent to be an integer and sometimes you want full coercion. 2 2 3 To solve this, we first check whether the exponent is "integerlike". If so, we call `_pow_ long`. If not, we do the usual coercion.3 To solve this, we first check whether the exponent is "integerlike". If so, we call `_pow_int`. If not, we do the usual coercion. 4 4 5 5 This is related to Python 3 (see #16072) because this check for an integer needs to be changed in light of the changes to the `int`/`long` types.