[issue16018] Impossible ... line in tutorial

2012-09-24 Thread Ezio Melotti

Ezio Melotti added the comment:

Is it?

Python 3.2.3 (default, May  3 2012, 15:54:42) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> # try to access an undefined variable
... n
Traceback (most recent call last):
  File "", line 2, in 
NameError: name 'n' is not defined
>>>

--
nosy: +ezio.melotti
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed
type:  -> enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16018] Impossible ... line in tutorial

2012-09-24 Thread Ramchandra Apte

Changes by Ramchandra Apte :


--
assignee:  -> docs@python
components: +Documentation
nosy: +docs@python

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16018] Impossible ... line in tutorial

2012-09-24 Thread Ramchandra Apte

New submission from Ramchandra Apte:

In http://docs.python.org/dev/tutorial/introduction.html, there is an ... line 
which is impossible in that case:

Variables must be “defined” (assigned a value) before they can be used, or an 
error will occur:

>>>
>>> # try to access an undefined variable
... n
Traceback (most recent call last):
  File "", line 1, in 
NameError: name 'n' is not defined

It should be:

>>> n # try to access an undefined variable
Traceback (most recent call last):
  File "", line 1, in 
NameError: name 'n' is not defined

--
messages: 171138
nosy: ramchandra.apte
priority: normal
severity: normal
status: open
title: Impossible ... line in tutorial

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com