Olivier Grisel <olivier.grisel at ensta.org> added the comment: Thanks Antoine, I updated my code to what you suggested. ---------- _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue31993> _______________________________________