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) (nan+nanj) (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 <rep...@bugs.python.org> <http://bugs.python.org/issue22604> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com