• Guido van Rossum's avatar
    Add warning that mutable argument defaults are evaluated only once; · aee5e26f
    Guido van Rossum yazdı
    with examples and workaround.  This keeps coming up, and I believe
    that this section in the tutorial may have been (in part) the source
    of the confusion.  While it didn't show examples with [] for a default,
    it also didn't emphasize enough why that would be a bad idea, and
    while it did say that defaults are evaluated at the point of function
    definition, the example was not relevant for this issue.
    aee5e26f
Adı
Son kayıt (commit)
Son güncelleme
..
api Loading commit data...
ext Loading commit data...
html Loading commit data...
icons Loading commit data...
info Loading commit data...
lib Loading commit data...
mac Loading commit data...
paper-a4 Loading commit data...
paper-letter Loading commit data...
perl Loading commit data...
ref Loading commit data...
templates Loading commit data...
texinputs Loading commit data...
tools Loading commit data...
tut Loading commit data...
.cvsignore Loading commit data...
Makefile Loading commit data...
README Loading commit data...
TODO Loading commit data...
howto.tex Loading commit data...
libmods.tex Loading commit data...
libstd.tex Loading commit data...