[New-bugs-announce] [issue22604] assertion error in complex division

Antoine Pitrou report at bugs.python.org
Fri Oct 10 17:35:13 CEST 2014

New submission from Antoine Pitrou:

This only happens in debug mode:

>>> complex(0.0, 0.0) / complex(float('nan'), 0.0)
python: Objects/complexobject.c:98: _Py_c_quot: Assertion `b.imag != 0.0' failed.

In release mode, this gives:

>>> complex(0.0, 0.0) / complex(float('nan'), 0.0)

(is it the right result?)

components: Interpreter Core
messages: 229011
nosy: eric.smith, lemburg, mark.dickinson, pitrou, stutzbach
priority: normal
severity: normal
status: open
title: assertion error in complex division
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list