Serhiy Storchaka added the comment: See issue20015 for more general and simple solution. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue20014> _______________________________________