logo       

Re: sys.argv[i] with i>9 Problem ?: msg#00028

lang.jython.user

Subject: Re: sys.argv[i] with i>9 Problem ?

This works for me:

argv.py:

import sys
for i in range(len(sys.argv)):
print sys.argv[i]


C:\>jython argv.py 1 2 3 4 5 6 7 8 9 10 11
argv.py
1
2
3
4
5
6
7
8
9
10
11

Perhaps it is a system limitation. FWIW, I'm running
Windows XP.


Jean Guillaume LALANNE wrote:
Hi,

I am getting an error with the sys.argv[i] mechanism when i>9.
It looks like it cannot get the arguments beside 9.

What am I doing wrong ?

Thanks in advance for your help.

Regards
Jean-Guillaume LALANNE




-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Jython-users mailing list
Jython-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/jython-users


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise