[DAMD-36] mutable default arguments Created: 13/Nov/18 Updated: 28/Nov/18 Resolved: 28/Nov/18 |
|
| Status: | Done |
| Project: | Data Model |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Normal |
| Reporter: | Guillaume PERNOT | Assignee: | Guillaume PERNOT |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Reviewers: | price |
| Description |
|
Some method definitions use mutable as default values. As far as i can see, the "append" anti-pattern (https://docs.quantifiedcode.com/python-anti-patterns/correctness/mutable_default_value_as_argument.html) is not wanted here. |