Re: [Tutor] Command line arguments passing

2005-12-04 Thread Vlad Popescu
I don't have Python on Windows and didn't want to make any assumptions about the way the Windows shell passes parameters. Sorry again for being trivial. On Sun, 2005-12-04 at 09:00 +, Alan Gauld wrote: > > My question is: when invoking a program with, let's say, a filename > > containing space

Re: [Tutor] Command line arguments passing

2005-12-04 Thread Vlad Popescu
On Sat, 2005-12-03 at 17:23 -0800, Danny Yoo wrote: > > > > My question is: when invoking a program with, let's say, a filename > > > containing spaces as a parameter: > > > > > > myprog -file "Long name" > > > > > > What does sys.argv hold in this case? I am specifically interested in > > > wheth

Re: [Tutor] Command line arguments passing

2005-12-04 Thread Alan Gauld
> My question is: when invoking a program with, let's say, a filename > containing spaces as a parameter: > > myprog -file "Long name" > > What does sys.argv hold in this case? What did you get when you tried it? I ran: ###test.py ## import sys print sys.argv ### p

Re: [Tutor] Command line arguments passing

2005-12-03 Thread Danny Yoo
> > My question is: when invoking a program with, let's say, a filename > > containing spaces as a parameter: > > > > myprog -file "Long name" > > > > What does sys.argv hold in this case? I am specifically interested in > > whether argv[2]=="\"Long" or argv[2]=="Long name", Hi Vlad, What you'

Re: [Tutor] Command line arguments passing

2005-12-03 Thread Christopher Arndt
Vlad Popescu schrieb: > Hi there, everyone; first time poster! Sorry if this isn't very closely > related to Python, but I have encountered the issue while trying to > learn Python, so I guess I can just ask here. > > My question is: when invoking a program with, let's say, a filename > containing

[Tutor] Command line arguments passing

2005-12-03 Thread Vlad Popescu
Hi there, everyone; first time poster! Sorry if this isn't very closely related to Python, but I have encountered the issue while trying to learn Python, so I guess I can just ask here. My question is: when invoking a program with, let's say, a filename containing spaces as a parameter: myprog -f