This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Sworddragon
Recipients Sworddragon, mark.dickinson
Date 2010-06-12.20:35:14
SpamBayes Score 0.009504383
Marked as misclassified No
Message-id <1276374916.44.0.614919681264.issue8984@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-06-12 20:35:16Sworddragonsetrecipients: + Sworddragon, mark.dickinson
2010-06-12 20:35:16Sworddragonsetmessageid: <1276374916.44.0.614919681264.issue8984@psf.upfronthosting.co.za>
2010-06-12 20:35:14Sworddragonlinkissue8984 messages
2010-06-12 20:35:14Sworddragoncreate