How to pass a dict when a Python function expects **kwargs

How to pass a dict when a Python function expects **kwargs

4,609 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@athipudr
@athipudr - 11.03.2022 11:35

Thank you, It just what l'm looking for.

Ответить
@aflous
@aflous - 07.08.2022 21:02

This is similar to function calls with list unpacking

Ответить
@barzhikevil6873
@barzhikevil6873 - 05.10.2022 18:37

Very useful explanation. Thanks!

Ответить
@sunilreddy146
@sunilreddy146 - 15.11.2022 08:47

Clear and precise explanation! Thanks

Ответить
@ruideklerk1059
@ruideklerk1059 - 16.11.2022 19:34

So, this would be the pythonic equivalent to the spread operator in JS -- correct?
Thanks for sharing!

Ответить
@creed404
@creed404 - 04.07.2023 03:50

Dictionary unpacking?

Ответить
@Billcasiopost
@Billcasiopost - 18.10.2023 00:03

That is exactly what I was after 👍👍👍

Ответить