Marcos Donolo <mdonolo at vt.edu> added the comment: I had to handle nans and infs in different places. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue7534> _______________________________________