Stop load_funds from returning the mutable DEFAULT_FUNDS list #23
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: medium
Category: bug
Location:
sinking.py:32-33Problem
On first run it returns the module-level DEFAULT_FUNDS by reference; in-place mutation permanently alters the default for the process lifetime.
Suggested fix
Return
copy.deepcopy(DEFAULT_FUNDS).Filed by automated code review.