Serhiy Storchaka added the comment: Definitely this was a bug. Thank you Roumen for your patch. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue18637> _______________________________________