mirror of
https://github.com/python/cpython.git
synced 2025-10-29 17:38:56 +00:00
We don't want to go into a full explanation of scopes at this point in the tutorial, so we just mention that the loop creates or overwrites a persistent variable while the listcomp doesn't. Not mentioning this would lead someone to incorrectly assume loops and listcomps were *completely* equivalent, which would confuse them later. Original patch by Rose Ames, tweaked to remove the word 'scope'. |
||
|---|---|---|
| .. | ||
| appendix.rst | ||
| appetite.rst | ||
| classes.rst | ||
| controlflow.rst | ||
| datastructures.rst | ||
| errors.rst | ||
| floatingpoint.rst | ||
| index.rst | ||
| inputoutput.rst | ||
| interactive.rst | ||
| interpreter.rst | ||
| introduction.rst | ||
| modules.rst | ||
| stdlib.rst | ||
| stdlib2.rst | ||
| whatnow.rst | ||