Serhiy Storchaka added the comment: This isn't so easy. Seems the simplest way to solve this issue is implementing issue17611. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue24340> _______________________________________