Serhiy Storchaka added the comment: See issue20015 for more general approach. ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue13566> _______________________________________