diff options
author | R David Murray <rdmurray@bitdance.com> | 2014-09-30 21:25:38 -0400 |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2014-09-30 21:25:38 -0400 |
commit | 6bd68608ffb1a0366760a190864bb05c618559ab (patch) | |
tree | d632b58513fb31a3e18b7a45949d85c80d7b422c /Lib/pathlib.py | |
parent | e6edc03a6147c7447741dc5b163730dcb44dda4c (diff) | |
download | cpython-git-6bd68608ffb1a0366760a190864bb05c618559ab.tar.gz |
#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'.
Diffstat (limited to 'Lib/pathlib.py')
0 files changed, 0 insertions, 0 deletions