Brett Cannon added the comment: Leaving this open in case someone wants to backport to 2.7. ---------- versions: -Python 3.5, Python 3.6 _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue26359> _______________________________________