Raymond Hettinger added the comment: I believe this is just a 2.7 issue. ---------- versions: -Python 3.5, Python 3.6, Python 3.7 _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue23787> _______________________________________