Simple Problem

Paul Rubin http
Sun Jul 24 21:22:52 EDT 2005


"ncf" <nothingcanfulfill at gmail.com> writes:
> I know I've seen this somewhere before, but does anyone know what the
> function to escape a string is? (i.e., encoding newline to "\n" and a
> chr(254) to "\xfe") (and visa-versa)

repr(s)



More information about the Python-list mailing list