bpo-29602: fix signed zero handling in complex constructor. (#203) · pythoncapi/cpython@112ec38 · GitHub
Skip to content

Commit 112ec38

Browse files
authored
bpo-29602: fix signed zero handling in complex constructor. (python#203)
* Fix incorrect handling of signed zeros for complex-related classes. * Add Misc/NEWS entry.
1 parent 1b8df10 commit 112ec38

3 files changed

Lines changed: 30 additions & 3 deletions

File tree

Lib/test/test_complex.py

Lines changed: 23 additions & 0 deletions

Misc/NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ What's New in Python 3.7.0 alpha 1?
1010
Core and Builtins
1111
-----------------
1212

13+
- bpo-29602: Fix incorrect handling of signed zeros in complex constructor for
14+
complex subclasses and for inputs having a __complex__ method. Patch
15+
by Serhiy Storchaka.
16+
1317
- bpo-29347: Fixed possibly dereferencing undefined pointers
1418
when creating weakref objects.
1519

Objects/complexobject.c

Lines changed: 3 additions & 3 deletions

0 commit comments

Comments
 (0)