Parsing strings?

Jeremy Fincher tweedgeezer at
Mon Apr 14 08:24:44 CEST 2003

Is there any way to turn a string (in Python format, escapes and all)
into an actual Python string without using eval()?

I.e., I'd like to turn the four-character string "\\x00" into the
one-character Python string "\x00" without using eval().  Is there any
way to do that?


More information about the Python-list mailing list