summaryrefslogtreecommitdiffstats
path: root/Python/random.c
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-10-01 01:25:38 (GMT)
committerR David Murray <rdmurray@bitdance.com>2014-10-01 01:25:38 (GMT)
commit6bd68608ffb1a0366760a190864bb05c618559ab (patch)
treed632b58513fb31a3e18b7a45949d85c80d7b422c /Python/random.c
parente6edc03a6147c7447741dc5b163730dcb44dda4c (diff)
downloadcpython-6bd68608ffb1a0366760a190864bb05c618559ab.zip
cpython-6bd68608ffb1a0366760a190864bb05c618559ab.tar.gz
cpython-6bd68608ffb1a0366760a190864bb05c618559ab.tar.bz2
#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 'Python/random.c')
0 files changed, 0 insertions, 0 deletions