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

when a default arg is a [] #1

Open
rbuckland opened this issue Mar 9, 2023 · 2 comments
Open

when a default arg is a [] #1

rbuckland opened this issue Mar 9, 2023 · 2 comments

Comments

@rbuckland
Copy link

An issue was encountered when a default arg value was a list

def func(a=[]):
   ...

the base bug found is that the dict mixing default args and values had them swapped around.
The fix and a test case is added in the PR.

@rbuckland
Copy link
Author

@sebdevine did you have a chance to look at this ?

@sebdevine
Copy link
Owner

@rbuckland Hi ! sorry it seems i missed the first github alert, thx for taking the time to look at my small project, I'll have a look in the next days.

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