Serhiy Storchaka added the comment: I think "invalid escape sequence '\?'" would look cleaner than "invalid escape sequence '?'". ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue27364> _______________________________________