Changes between Initial Version and Version 1 of Ticket #24247


Ignore:
Timestamp:
11/20/17 11:07:14 (4 years ago)
Author:
jdemeyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24247 – Description

    initial v1  
     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
     3To solve this, we first check whether the exponent is "integer-like". If so, we call `_pow_long`. If not, we do the usual coercion.
     4
     5This 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.