Mark Dickinson <dickinsm at gmail.com> added the comment: Yes, I'd definitely expect `midpoint(inf, -inf)` to be `nan`. ---------- _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue36493> _______________________________________