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

Default argument initialization with list found which is a loop hole in python #535

Open
neel004 opened this issue Nov 16, 2022 · 1 comment · May be fixed by #536
Open

Default argument initialization with list found which is a loop hole in python #535

neel004 opened this issue Nov 16, 2022 · 1 comment · May be fixed by #536

Comments

@neel004
Copy link

neel004 commented Nov 16, 2022

Describe the bug
When an argument is initialized with an empty list in python, it retains previous values it has accumulated while executing the method.

To Reproduce
Steps to reproduce the behavior:
Link to code: https://github.com/python-gsoc/python-blogs/blob/master/aldryn_people/cms_toolbars.py#L47:

Additional context
Link for reference: https://web.archive.org/web/20200221224620id_/http://effbot.org/zone/default-values.htm

@vrac10
Copy link

vrac10 commented Jan 18, 2023

Can I work on this issue?

@vrac10 vrac10 linked a pull request Jan 18, 2023 that will close this issue
8 tasks
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 a pull request may close this issue.

2 participants