[issue10559] NameError in tutorial/interpreter

2010-12-17 Thread R. David Murray
R. David Murray added the comment: Committed in r87337. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue10559] NameError in tutorial/interpreter

2010-12-17 Thread R. David Murray
Changes by R. David Murray : Added file: http://bugs.python.org/file20094/tut_argv.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue10559] NameError in tutorial/interpreter

2010-12-17 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file20093/tut_argv.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10559] NameError in tutorial/interpreter

2010-12-17 Thread Georg Brandl
Georg Brandl added the comment: +1. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue10559] NameError in tutorial/interpreter

2010-12-17 Thread R. David Murray
R. David Murray added the comment: Attached diff provides another suggested rewording that I think is clearer. -- nosy: +r.david.murray Added file: http://bugs.python.org/file20093/tut_argv.diff ___ Python tracker

[issue10559] NameError in tutorial/interpreter

2010-12-17 Thread Georg Brandl
Georg Brandl added the comment: "Use that list" doesn't make me happy, what about "access"? -- nosy: +georg.brandl ___ Python tracker ___ ___

[issue10559] NameError in tutorial/interpreter

2010-12-15 Thread Éric Araujo
Éric Araujo added the comment: New wording: When known to the interpreter, the script name and additional arguments thereafter are passed to the script in the variable ``sys.argv``, which is a -list of strings. Its length is at least one; when no script and no arguments +list of strings. Yo

[issue10559] NameError in tutorial/interpreter

2010-11-29 Thread Éric Araujo
Éric Araujo added the comment: What about: “You need to execute ``import sys`` before you can use ``sys.argv``.” -- ___ Python tracker ___ _

[issue10559] NameError in tutorial/interpreter

2010-11-29 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Sun, Nov 28, 2010 at 05:48:20AM +, Éric Araujo wrote: > I’m not committing directly because I’d like feedback: Is the > wording okay for the beginning of the tutorial? It seems fine and useful. Please go ahead. -- nosy: +orsenthil

[issue10559] NameError in tutorial/interpreter

2010-11-27 Thread Ezio Melotti
Ezio Melotti added the comment: What about "In order to use ``sys.argv`` you have to import the :mod:`sys` module doing ``import sys``.". "reference" sounds weird to me, and imho saying "import the module" is ok even if imports have not been introduced yet. If the user doesn't understand what

[issue10559] NameError in tutorial/interpreter

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +d...@python ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10559] NameError in tutorial/interpreter

2010-11-27 Thread Éric Araujo
New submission from Éric Araujo : >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 simpl