• David Warde-Farley's avatar
    Fix mutable default arguments (config.foo values). · fbfb0081
    David Warde-Farley 提交于
    config.blah should not be used as a default argument as the values can
    change during execution, but default arguments are only evaluated at
    function definition time. The correct idiom is to use a sentinel value
    such as None and then check for it, and read out the config value in the
    function body.
    fbfb0081
名称
最后提交
最后更新
..
.build 正在载入提交数据...
.static 正在载入提交数据...
.templates 正在载入提交数据...
api 正在载入提交数据...
cifarSC2011 正在载入提交数据...
developer 正在载入提交数据...
examples 正在载入提交数据...
extending 正在载入提交数据...
hpcs2011_tutorial 正在载入提交数据...
images 正在载入提交数据...
internal 正在载入提交数据...
library 正在载入提交数据...
proposals 正在载入提交数据...
sandbox 正在载入提交数据...
scripts 正在载入提交数据...
tutorial 正在载入提交数据...
LICENSE.txt 正在载入提交数据...
NEWS.txt 正在载入提交数据...
bcast.png 正在载入提交数据...
bcast.svg 正在载入提交数据...
conf.py 正在载入提交数据...
core_development_guide.txt 正在载入提交数据...
dev_start_guide.txt 正在载入提交数据...
generate_dtype_tensor_table.py 正在载入提交数据...
glossary.txt 正在载入提交数据...
index.txt 正在载入提交数据...
install.txt 正在载入提交数据...
introduction.txt 正在载入提交数据...
links.txt 正在载入提交数据...
nice_quotes.txt 正在载入提交数据...
optimizations.txt 正在载入提交数据...
pylintrc 正在载入提交数据...