• 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
名称
最后提交
最后更新
..
compile 正在载入提交数据...
gof 正在载入提交数据...
misc 正在载入提交数据...
sandbox 正在载入提交数据...
scalar 正在载入提交数据...
scan_module 正在载入提交数据...
sparse 正在载入提交数据...
tensor 正在载入提交数据...
tests 正在载入提交数据...
__init__.py 正在载入提交数据...
configdefaults.py 正在载入提交数据...
configparser.py 正在载入提交数据...
gradient.py 正在载入提交数据...
ifelse.py 正在载入提交数据...
printing.py 正在载入提交数据...
raise_op.py 正在载入提交数据...
updates.py 正在载入提交数据...
version.py 正在载入提交数据...