Demian Brecht added the comment: Sorry, bad example. Replace "[" in the previous example with any actually invalid character. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue22983> _______________________________________