Re: Raw strings as input from File?

2009-12-01 Thread rzed
utabintarbo utabinta...@gmail.com wrote in news:adc6c455-5616-471a-8b39-d7fdad217...@m33g2000vbi.googlegroups.c om: I have a log file with full Windows paths on a line. eg: K:\A\B\C\10xx\somerandomfilename.ext-/a1/b1/c1/10xx \somerandomfilename.ext ; txx; 11/23/2009 15:00:16 ; 1259006416

Re: Raw strings as input from File?

2009-12-01 Thread Dave Angel
rzed wrote: utabintarbo utabinta...@gmail.com wrote in news:adc6c455-5616-471a-8b39-d7fdad217...@m33g2000vbi.googlegroups.c om: I have a log file with full Windows paths on a line. eg: K:\A\B\C\10xx\somerandomfilename.ext-/a1/b1/c1/10xx \somerandomfilename.ext ; txx; 11/23/2009

Re: Raw strings as input from File?

2009-11-25 Thread Jon Clements
On Nov 25, 3:31 am, Grant Edwards inva...@invalid.invalid wrote: On 2009-11-25, Rhodri James rho...@wildebst.demon.co.uk wrote: On Tue, 24 Nov 2009 21:20:25 -, utabintarbo utabinta...@gmail.com   wrote: On Nov 24, 3:27 pm, MRAB pyt...@mrabarnett.plus.com wrote: .readlines()

Raw strings as input from File?

2009-11-24 Thread utabintarbo
I have a log file with full Windows paths on a line. eg: K:\A\B\C\10xx\somerandomfilename.ext-/a1/b1/c1/10xx \somerandomfilename.ext ; txx; 11/23/2009 15:00:16 ; 1259006416 As I try to pull in the line and process it, python changes the \10 to a \x08. This is before I can do anything with it.

Re: Raw strings as input from File?

2009-11-24 Thread MRAB
utabintarbo wrote: I have a log file with full Windows paths on a line. eg: K:\A\B\C\10xx\somerandomfilename.ext-/a1/b1/c1/10xx \somerandomfilename.ext ; txx; 11/23/2009 15:00:16 ; 1259006416 As I try to pull in the line and process it, python changes the \10 to a \x08. This is before I can

Re: Raw strings as input from File?

2009-11-24 Thread Carsten Haese
utabintarbo wrote: I have a log file with full Windows paths on a line. eg: K:\A\B\C\10xx\somerandomfilename.ext-/a1/b1/c1/10xx \somerandomfilename.ext ; txx; 11/23/2009 15:00:16 ; 1259006416 As I try to pull in the line and process it, python changes the \10 to a \x08. Python does no

Re: Raw strings as input from File?

2009-11-24 Thread utabintarbo
On Nov 24, 3:27 pm, MRAB pyt...@mrabarnett.plus.com wrote: .readlines() doesn't change the \10 in a file to \x08 in the string it returns. Could you provide some code which shows your problem? Here is the code block I have so far: for l in open(CONTENTS, 'r').readlines(): f =

Re: Raw strings as input from File?

2009-11-24 Thread Jon Clements
On Nov 24, 9:20 pm, utabintarbo utabinta...@gmail.com wrote: On Nov 24, 3:27 pm, MRAB pyt...@mrabarnett.plus.com wrote: .readlines() doesn't change the \10 in a file to \x08 in the string it returns. Could you provide some code which shows your problem? Here is the code block I have

Re: Raw strings as input from File?

2009-11-24 Thread Jon Clements
On Nov 24, 9:50 pm, Jon Clements jon...@googlemail.com wrote: On Nov 24, 9:20 pm, utabintarbo utabinta...@gmail.com wrote: [snip] Although, Pat\x08DJQ.D5-30Q5B-B-D5-BSHOE-MM.smz and Pat \x08DJQ.D5-30Q5B-B-D5-BSHOE-MM.smz seem to be fairly different -- are you sure you're posting the correct

Re: Raw strings as input from File?

2009-11-24 Thread Terry Reedy
utabintarbo wrote: I have a log file with full Windows paths on a line. eg: K:\A\B\C\10xx\somerandomfilename.ext-/a1/b1/c1/10xx \somerandomfilename.ext ; txx; 11/23/2009 15:00:16 ; 1259006416 As I try to pull in the line and process it, python changes the \10 to a \x08. This should only

Re: Raw strings as input from File?

2009-11-24 Thread Rhodri James
On Tue, 24 Nov 2009 21:20:25 -, utabintarbo utabinta...@gmail.com wrote: On Nov 24, 3:27 pm, MRAB pyt...@mrabarnett.plus.com wrote: .readlines() doesn't change the \10 in a file to \x08 in the string it returns. Could you provide some code which shows your problem? Here is the code

Re: Raw strings as input from File?

2009-11-24 Thread Rhodri James
On Wed, 25 Nov 2009 01:11:29 -, Rhodri James rho...@wildebst.demon.co.uk wrote: On Tue, 24 Nov 2009 21:20:25 -, utabintarbo utabinta...@gmail.com wrote: On Nov 24, 3:27 pm, MRAB pyt...@mrabarnett.plus.com wrote: .readlines() doesn't change the \10 in a file to \x08 in the string

Re: Raw strings as input from File?

2009-11-24 Thread Grant Edwards
On 2009-11-25, Rhodri James rho...@wildebst.demon.co.uk wrote: On Tue, 24 Nov 2009 21:20:25 -, utabintarbo utabinta...@gmail.com wrote: On Nov 24, 3:27 pm, MRAB pyt...@mrabarnett.plus.com wrote: .readlines() doesn't change the \10 in a file to \x08 in the string it returns. Could