Debating tournament tabulation software for British Parliamentary and a variety of two-team parliamentary formats
GNU Affero General Public License v3.0
242
stars
806
forks
source link
Potential Bug: Use of mutable default arguments in python #2483
Open
elayeek opened 1 month ago
This is a niche issue but this is a common pitfall in Python that causes unexpected behavior.
Python evaluates functions on module load and generates mutable default argument objects once, then persist them whenever the function is called.
https://docs.python-guide.org/writing/gotchas/#mutable-default-arguments