• R David Murray's avatar
    #21739: mention subtle difference between loops and listcomps in tutorial. · 6bd68608
    R David Murray yazdı
    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'.
    6bd68608
Adı
Son kayıt (commit)
Son güncelleme
..
appendix.rst Loading commit data...
appetite.rst Loading commit data...
classes.rst Loading commit data...
controlflow.rst Loading commit data...
datastructures.rst Loading commit data...
errors.rst Loading commit data...
floatingpoint.rst Loading commit data...
index.rst Loading commit data...
inputoutput.rst Loading commit data...
interactive.rst Loading commit data...
interpreter.rst Loading commit data...
introduction.rst Loading commit data...
modules.rst Loading commit data...
stdlib.rst Loading commit data...
stdlib2.rst Loading commit data...
whatnow.rst Loading commit data...