bpo-44698: Restore complex pow behaviour for small integral exponents… · python/cpython@4b9a2dc · GitHub
Skip to content

Commit 4b9a2dc

Browse files
authored
bpo-44698: Restore complex pow behaviour for small integral exponents (GH-27772)
1 parent c2c857b commit 4b9a2dc

3 files changed

Lines changed: 37 additions & 21 deletions

File tree

Lib/test/test_complex.py

Lines changed: 28 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Restore behaviour of complex exponentiation with integer-valued exponent of
2+
type :class:`float` or :class:`complex`.

Objects/complexobject.c

Lines changed: 7 additions & 21 deletions

0 commit comments

Comments
 (0)