Message122635
From the docs@ mailing list:
“Tutorial 2.1.1: name 'sys' is not defined
When the student tells python to evaluate sys.argv[0] as described, she gets the following error: name 'sys' is not defined”
Imports have not been introduced yet, so I propose this simple change:
-left in ``sys.argv`` for the command or module to handle.
+left in ``sys.argv`` for the command or module to handle. You need to
+execute ``import sys`` before you can reference ``sys.argv``.
I’m not committing directly because I’d like feedback: Is the wording okay for the beginning of the tutorial? |
|
Date |
User |
Action |
Args |
2010-11-28 05:48:20 | eric.araujo | set | recipients:
+ eric.araujo |
2010-11-28 05:48:20 | eric.araujo | set | messageid: <1290923300.31.0.847319957553.issue10559@psf.upfronthosting.co.za> |
2010-11-28 05:48:16 | eric.araujo | link | issue10559 messages |
2010-11-28 05:48:16 | eric.araujo | create | |
|