should not use mutable default arguments
Bug #1525903 reported by
javeme
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Undecided
|
javeme |
Bug Description
We should not use mutable default arguments in function definitions due to the "Common Gotchas"[1].
So, we must remove the default arguments "[]" when the function is defined, such as this function:
https:/
[1]: http://
Changed in horizon: | |
assignee: | nobody → javeme (javaloveme) |
status: | New → In Progress |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/256931 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=db8e206bee8 56fe838b381e5dc 8eb47706f50b5b
Committed: https:/
Submitter: Jenkins
Branch: master
commit db8e206bee856fe 838b381e5dc8eb4 7706f50b5b
Author: Javeme <email address hidden>
Date: Sat Dec 12 18:28:58 2015 +0800
remove the default arguments "[]"
remove the default arguments "[]" when the function is defined. docs.python- guide.org/ en/latest/ writing/ gotchas/
ref: http://
Closes-Bug: #1525903 bb50f7ce27fac09 d6448fd2bb2
Change-Id: I241f22fe10e535