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 eric.araujo
Recipients eric.araujo
Date 2010-11-28.05:48:16
SpamBayes Score 0.00019048247
Marked as misclassified No
Message-id <1290923300.31.0.847319957553.issue10559@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2010-11-28 05:48:20eric.araujosetrecipients: + eric.araujo
2010-11-28 05:48:20eric.araujosetmessageid: <1290923300.31.0.847319957553.issue10559@psf.upfronthosting.co.za>
2010-11-28 05:48:16eric.araujolinkissue10559 messages
2010-11-28 05:48:16eric.araujocreate