Antoine Pitrou added the comment: Charles-François's patch looks ok to me. I don't know if this warrants adding a test. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue15833> _______________________________________