[issue13052] IDLE: replace ending with '\' causes crash
Roger Serwy
report at bugs.python.org
Fri Oct 14 21:38:30 CEST 2011
Roger Serwy <roger.serwy at gmail.com> added the comment:
I don't have the beep problem you describe under Linux using Python 3.2 (r32:88445, Mar 25 2011, 19:56:22). That may be a platform-specific bug.
Here's a patch to use re.escape instead.
A minor side effect of using re.escape is that it is not possible to use \n itself in the replace string. It gets escaped as \\n.
----------
Added file: http://bugs.python.org/file23411/patch13052_re.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13052>
_______________________________________
More information about the Python-bugs-list
mailing list