Re: [Tutor] Wrong version of Python being executed

2007-11-19 Thread Alan Gauld
"Tony Cappellini" <[EMAIL PROTECTED]> wrote > So I've changed the association from the 2.3 icon to the 2.5 icon, > and > now I can run my script from the command line as follows > > python script.py, and the correct version of Python is invoked. > > This is very disturbing because it means the pa

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 =

Re: [Tutor] Wrong version of Python being executed

2007-11-19 Thread Tony Cappellini
I've found something interesting regarding this issue. I went to Windows Explorer, Tools,Folder Options, File Types and noticed that there are two different icons associated with .PY files. The Icon for Python 2.5 is easy to recognize as compared with the icon for Python 2.3. So I've changed the

[Tutor] Is it possible to use sockets to login to a website that uses php?

2007-11-19 Thread Lamonte Harris
I need to some how make a script that logs into a website from my desktop and I can do the rest and grab the information on my on hopefully. How would I login to a website using sockets with python? ___ Tutor maillist - Tutor@python.org http://mail.pyt