2015-12-15 03:01:07 |
Wang Bo |
description |
Refer to: http://docs.python-guide.org/en/latest/writing/gotchas/. we should not use mutable default arguments in function definitions.
So we need remove the default arguments "[]" and "{}" in function definitions. "[]" has been removed in patch: https://review.openstack.org/#/c/256931/2. We need fix the left "{}" usage. |
Refer to: http://docs.python-guide.org/en/latest/writing/gotchas/.
We should not use mutable default arguments in function definitions.
So we need remove the default arguments "[]" and "{}" in function definitions. "[]" has been removed in patch: https://review.openstack.org/#/c/256931/2. We also need fix the code incorrectly using "{}". |
|