New submission from Russ Cox <[EMAIL PROTECTED]>: import re print re.escape("_")
Prints \_ but should be _. This behavior differs from Perl and other systems: _ is an identifier character and as such does not need to be escaped. ---------- messages: 65585 nosy: rsc severity: normal status: open title: re.escape should not escape underscore type: behavior versions: Python 2.5 __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2650> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com