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

Avoid using dicts and lists as default value #12

Merged
merged 4 commits into from
Jan 9, 2017

Conversation

apinsard
Copy link
Contributor

This is error-prone as the reference is kept accross function calls.
Thus, if the list or dict is modified inside the function, the default
value of the function will also be modified for subsequent calls.

 ### Added
- `epro show-json`
- `epro get`

 ### Changed
- `epro list` now accepts multiple profile arguments
- `epro subarch` now uses `epro get arch` instead of /etc/portage/make.profile/parent
This is error-prone as the reference is kept accross function calls.
Thus, if the list or dict is modified inside the function, the default
value of the function will also be modified for subsequent calls.
@danielrobbins
Copy link
Member

This issue has been imported into the Funtoo Linux bug tracker. This helps us to ensure that your bug is prioritized and gets the attention it deserves. You are welcome to create a Funtoo account and participate in the Funtoo Linux workflow or follow-up in the GitHub issue (comments are not currently synchronized.) Follow the action here: https://bugs.funtoo.org/browse/FL-3415

@danielrobbins danielrobbins merged commit 06dcaf3 into funtoo:master Jan 9, 2017
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