Mark Dickinson added the comment: Here's a patch. ---------- assignee: -> mark.dickinson keywords: +patch Added file: http://bugs.python.org/file37633/math_inf_nan.patch _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue23185> _______________________________________