Antoine Pitrou added the comment: Thanks for the report and the patch! For a bit of trivia, this code has been there since 2000 (63ea2a2df06f). ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue21350> _______________________________________