Message171136
| Author |
Ramchandra Apte |
| Recipients |
Ramchandra Apte, docs@python, ezio.melotti |
| Date |
2012年09月24日.14:17:28 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1348496249.11.0.396298834681.issue16015@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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 "<stdin>", line 1, in <module>
NameError: name 'n' is not defined
It should be:
>>> n # try to access an undefined variable
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'n' is not defined |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年09月24日 14:17:29 | Ramchandra Apte | set | recipients:
+ Ramchandra Apte, ezio.melotti, docs@python |
| 2012年09月24日 14:17:29 | Ramchandra Apte | set | messageid: <1348496249.11.0.396298834681.issue16015@psf.upfronthosting.co.za> |
| 2012年09月24日 14:17:28 | Ramchandra Apte | link | issue16015 messages |
| 2012年09月24日 14:17:28 | Ramchandra Apte | create |
|