Skip to content

Update README.md#17

Closed
EDCastaneda wants to merge 1 commit intozedr:masterfrom
EDCastaneda:master
Closed

Update README.md#17
EDCastaneda wants to merge 1 commit intozedr:masterfrom
EDCastaneda:master

Conversation

@EDCastaneda
Copy link

what about this approach?


**Light and good**
```python
kargs = {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's used be called kwargs (keyword arguments) , isn't it?

def myfunction(arg0, arg1):
print(f'arg0:{arg0} arg1:{arg1}')

myfunction(**kargs)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's correct that you can unpack a dict here, but I don't think it's good to use that here. Also no one can say that the keys in the dictionary are named as expected by the function.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I agree. I was thinking about a temporal refactoring only.

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.

2 participants