Re: [Tutor] Windows - Linux based open() file handle mode

2007-11-19 Thread Alan Gauld
"Bill Campbell" <[EMAIL PROTECTED]> wrote >>blast_out = open('C:\human\prb_blast.out','U') >> >>Are there any other ways to solve this problem. > > Try blast_out = open('C:/human/prb_blast.out', 'U') instead of > the $DEITY/Awful DOSish backwacks. > > If you're really enamoured of backslashes, ad

Re: [Tutor] Windows - Linux based open() file handle mode

2007-11-19 Thread Bill Campbell
On Mon, Nov 19, 2007, Srinivas Iyyer wrote: >Dear group, > >I want to parse an file generated for windows. >My code works beautifully when I try to parse the same >file generated in Linux. > >I uses the following options with no success: > >blast_out = open('C:\human\prb_blast.out','r') > >blast_

Re: [Tutor] Windows - Linux based open() file handle mode

2007-11-19 Thread Kent Johnson
Srinivas Iyyer wrote: > Dear group, > > I want to parse an file generated for windows. > My code works beautifully when I try to parse the same > file generated in Linux. > > I uses the following options with no success: > > blast_out = open('C:\human\prb_blast.out','r') > > blast_out = open(

[Tutor] Windows - Linux based open() file handle mode

2007-11-19 Thread Srinivas Iyyer
Dear group, I want to parse an file generated for windows. My code works beautifully when I try to parse the same file generated in Linux. I uses the following options with no success: blast_out = open('C:\human\prb_blast.out','r') blast_out = open('C:\human\prb_blast.out','rU') blast_out =