The Python Oracle

What is the purpose and use of **kwargs?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: City Beneath the Waves Looping

--

Chapters
00:00 Question
00:36 Accepted answer (Score 934)
01:33 Answer 2 (Score 372)
03:19 Answer 3 (Score 70)
04:34 Answer 4 (Score 56)
05:23 Thank you

--

Full question
https://stackoverflow.com/questions/1769...

Accepted answer links:
[Python Tutorial]: http://docs.python.org/tutorial/controlf...
[items()]: https://docs.python.org/3/library/stdtyp...

Answer 2 links:
[PEP 448: Additional Unpacking Generalizations]: https://www.python.org/dev/peps/pep-0448/
[Real Python: Python args and kwargs: Demystified]: https://realpython.com/python-kwargs-and.../
[What do * and ** before a variable name mean in a function signature?]: https://stackoverflow.com/q/11315010/775...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #keywordargument

#avk47