commit | 6bd68608ffb1a0366760a190864bb05c618559ab | [log] [tgz] |
---|---|---|
author | R David Murray <rdmurray@bitdance.com> | Tue Sep 30 21:25:38 2014 -0400 |
committer | R David Murray <rdmurray@bitdance.com> | Tue Sep 30 21:25:38 2014 -0400 |
tree | d632b58513fb31a3e18b7a45949d85c80d7b422c | |
parent | e6edc03a6147c7447741dc5b163730dcb44dda4c [diff] |
#21739: mention subtle difference between loops and listcomps in tutorial. 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'.