Mark Dickinson <dickinsm at gmail.com> added the comment: (and math.isnan is the recommended way to test for a nan). ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue737648> _______________________________________