• 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
名称
最后提交
最后更新
..
sandbox 正在载入提交数据...
tests 正在载入提交数据...
__init__.py 正在载入提交数据...
builders.py 正在载入提交数据...
debugmode.py 正在载入提交数据...
function.py 正在载入提交数据...
function_module.py 正在载入提交数据...
io.py 正在载入提交数据...
mode.py 正在载入提交数据...
module.py 正在载入提交数据...
pfunc.py 正在载入提交数据...
profilemode.py 正在载入提交数据...
profiling.py 正在载入提交数据...
sharedvalue.py 正在载入提交数据...