gh-119372: recover inf's and zeros in _Py_c_quot by skirpichev · Pull Request #119457 · python/cpython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions Lib/test/test_complex.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Correct invalid corner cases in complex division (resulted in ``(nan+nanj)``
output), e.g. ``1/complex('(inf+infj)')``. Patch by Sergey B Kirpichev.
25 changes: 23 additions & 2 deletions Objects/complexobject.c