[Python-bugs-list] escaping '\' (PR#420)

jeff.richards@whiplashnow.com jeff.richards@whiplashnow.com
Fri, 28 Jul 2000 12:56:12 -0400 (EDT)


Full_Name: Jeff Richards
Version: 1.5.2
OS: NT4
Submission from: michael.divineinterventures.com (208.203.56.130)


Backslash does not work as per language spec.

Example:  "\\hello\world"
result:   '\\hello\\world'  - Extra backslash added, first backslash not 
collapsed

Example: "\\hello\\world"
Result   "\\hello\\world"  - No backslashes are collapsed

Example: "hello\there" 
Result:  "hello\011there" - \t converted to \011, this is correct

Example: "\hello\\there" 
Result:  "\\hello\\there" - \\t converted to \\t, this is wrong, first \
converted to \\ - this is wrong