[issue8984] Python 3 doesn't register script arguments
Sworddragon
report at bugs.python.org
Sat Jun 12 22:35:16 CEST 2010
Sworddragon <sworddragon2 at aol.com> added the comment:
Examplescript test.py:
import sys
print(sys.argv[1])
Call this script now with an argument, for exmaple: test.py 1234
I expect to see the string 1234 in the console but Python 3 says "IndexError: list index out of range". With Python 2.6.5 I be able to see the correct string 1234.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8984>
_______________________________________
More information about the Python-bugs-list
mailing list