summaryrefslogtreecommitdiffstats
path: root/TODO
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2010-08-13 12:46:12 +0200
committerHans Ulrich Niedermann <hun@n-dimensional.de>2010-08-13 12:46:12 +0200
commit279d7c33511b971962c340cdb867feebdc77950e (patch)
tree016f65d214227c347d09303d7f9da92475de5c88 /TODO
parent050360dc31c7cee41a47ca0150ef132919408aba (diff)
downloadfedora-packager-fix/function-param-os.getcwd-default.tar.gz
fedora-packager-fix/function-param-os.getcwd-default.tar.xz
fedora-packager-fix/function-param-os.getcwd-default.zip
Avoid function calls as default param valuesfix/function-param-os.getcwd-default
A function call used as a default parameter value is evaluated once when the module code is first read in. However, the os.getcwd() function might give different results at run time than at module reading time. This replaces those default param values with None, and has the function bodies call os.getcwd() if the param happens to be None. See also http://docs.python.org/reference/compound_stmts.html#function-definitions
Diffstat (limited to 'TODO')
0 files changed, 0 insertions, 0 deletions