New submission from Éric Araujo <mer...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue10559>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to