Changes between Version 1 and Version 2 of Ticket #24247


Ignore:
Timestamp:
11/20/17 11:33:05 (3 years ago)
Author:
jdemeyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24247 – Description

    v1 v2  
    11`__pow__` is harder than most other arithmetic coercions because you sometimes want the exponent to be an integer and sometimes you want full coercion.
    22
    3 To solve this, we first check whether the exponent is "integer-like". If so, we call `_pow_long`. If not, we do the usual coercion.
     3To solve this, we first check whether the exponent is "integer-like". If so, we call `_pow_int`. If not, we do the usual coercion.
    44
    55This 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.