Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove mutable default args to prevent possible memory leaks #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bmfredrick
Copy link

I don't see anywhere where the library is appending to the lists set as default args, but it's safer to not set them directly to lists. It can also save a bit of memory, since the lists can be garbage collected once the functions terminate as opposed to living with the function definitions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant