Marco Sulla <launchpad.net at marco.sulla.e4ward.com> added the comment: Anyway, Java by default puts NaNs at the end of the iterable: https://onlinegdb.com/SJjuiXE0S ---------- _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue36095> _______________________________________