[issue22604] assertion error in complex division

2014-10-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: They seem to have behaved! Congratulations, buildbots! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker __

[issue22604] assertion error in complex division

2014-10-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I've committed the patch. Let's just see if the buildbots behave. -- ___ Python tracker ___ ___

[issue22604] assertion error in complex division

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0c8f45caf697 by Antoine Pitrou in branch '3.4': Issue #22604: Fix assertion error in debug mode when dividing a complex number by (nan+0j). https://hg.python.org/cpython/rev/0c8f45caf697 New changeset af0104aed5b1 by Antoine Pitrou in branch 'defau

[issue22604] assertion error in complex division

2014-10-10 Thread Mark Dickinson
Mark Dickinson added the comment: Patch LGTM. > (is it the right result?) Difficult to tell :-). Complex arithmetic in general isn't well standardised. Annex G of the C standard is about as close I've seen. But it doesn't look terribly wrong. -- ___

[issue22604] assertion error in complex division

2014-10-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file36869/c_quot_nan.patch ___ Python tracker __

[issue22604] assertion error in complex division

2014-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it is the right result. >>> 0.0 / float('nan') nan -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue22604] assertion error in complex division

2014-10-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue22604] assertion error in complex division

2014-10-10 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue22604] assertion error in complex division

2014-10-10 Thread Antoine Pitrou
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)