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

Replace mutable defaults with nonmutables #39

Merged

Conversation

pydanny
Copy link
Contributor

@pydanny pydanny commented Oct 11, 2014

Using mutables (dictionaries, lists, etc) as defaults in Python function or method declarations can lead to some really hard to debug race conditions. I switched two methods to use None as the default.

nimate added a commit that referenced this pull request Oct 20, 2014
…mutables

Replace mutable defaults with nonmutables
@nimate nimate merged commit 4c87df4 into filepicker:master Oct 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants