Meador Inge added the comment: This is the same as issue13091. I proposed a similar fix there, but yours is more complete and seems reasonable to me. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue16628> _______________________________________