• 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
BeOS Loading commit data...
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.hgtags Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...