Antoine Pitrou added the comment: > On Python 3.5 and 3.6, You can use math.inf and math.nan. The patch is for 3.4. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue24489> _______________________________________