Re: convert ascii escapes into binary form

2005-07-20 Thread Hans-Peter Jansen
Hi Robert, Hans-Peter Jansen wrote: > Robert Kern wrote: > > That did the trick, thanks a lot, Peter. Unfortunately, on the s/Peter/Robert/g Sorry, Robert. That's the price to pay for doing multiple replies at the same time. Mea culpa.. > target system, there's still python 2.0 running :-( Lo

Re: convert ascii escapes into binary form

2005-07-20 Thread Hans-Peter Jansen
Robert Kern wrote: > Hans-Peter Jansen wrote: >> Hi Pythonistas, >> >> I need to convert ascii escapes into binary form, e.g.: >> \f -> ^L >> [EMAIL PROTECTED] -> [EMAIL PROTECTED]@ >> >> (rvalues in terminal representation) >> >

Re: convert ascii escapes into binary form

2005-07-20 Thread Robert Kern
Hans-Peter Jansen wrote: > Hi Pythonistas, > > I need to convert ascii escapes into binary form, e.g.: > \f -> ^L > [EMAIL PROTECTED] -> [EMAIL PROTECTED]@ > > (rvalues in terminal representation) > > Any idea, how to do this most elegantly in python? > Do I

convert ascii escapes into binary form

2005-07-20 Thread Hans-Peter Jansen
Hi Pythonistas, I need to convert ascii escapes into binary form, e.g.: \f -> ^L [EMAIL PROTECTED] -> [EMAIL PROTECTED]@ (rvalues in terminal representation) Any idea, how to do this most elegantly in python? Do I really need to do a search n'replace orgy, combined with regex fo