Vivien Mallet wrote: > How would you perform backslash substitution in a string, just like the > Python parser does? >>> "\\\\A\\tB".decode("string_escape") '\\A\tB' >>> _.encode("string_escape") # back again '\\\\A\\tB' Peter