STINNER Victor added the comment: Oh, I forgot to mention that I'm not convinced that we should add such function to the Python stdlib. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue22264> _______________________________________