[issue10559] NameError in tutorial/interpreter

Éric Araujo report at bugs.python.org
Sun Nov 28 06:48:20 CET 2010


New submission from Éric Araujo <merwok at netwok.org>:

>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?

----------
assignee: eric.araujo
components: Documentation
keywords: needs review, patch
messages: 122635
nosy: eric.araujo
priority: normal
severity: normal
stage: patch review
status: open
title: NameError in tutorial/interpreter
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10559>
_______________________________________


More information about the Python-bugs-list mailing list