Éric Araujo added the comment: I did not test the patch but it does not look bad. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue15298> _______________________________________