On Jun 2, 9:54 am, Aldarion <[EMAIL PROTECTED]> wrote:
> for the little script
> #egg.py
> import sys
> for k,v in enumerate(sys.argv):
>     print k,v
>
> it ignores  the part after # on linux

Perhaps "it" is the linux shell ...

> below is the running output on windows and linux. no clue here.
> D:\python\note>egg.py #test
> 0 D:\python\note\egg.py
> 1 #test
>
> D:\python\note>egg.py for bar #spam egg
> 0 D:\python\note\egg.py
> 1 for
> 2 bar
> 3 #spam
> 4 egg
> [EMAIL PROTECTED]:~/transfer$ python2.5 egg.py #test
> 0 egg.py
> [EMAIL PROTECTED]:~/transfer$ python2.5 egg.py foo bar #spam egg
> 0 egg.py
> 1 foo
> 2 bar



--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to