Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
**kwargs question
#11
(Apr-01-2020, 07:04 AM)DPaul Wrote: why all other **kwarg examples show little "added value"
the other examples were more into showing (i) what args and kwargs would be, i.e. tuple and dict and (ii) different calls of such function.
I think with time you will see the benefits it brings in certain cases - e.g. in class inheritance, in decoratros
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How do I instantiate a class with **kwargs? palladium 6 6,965 Feb-16-2023, 06:10 PM
Last Post: deanhystad
  kwargs question Jeff_t 8 2,872 Feb-16-2022, 04:33 PM
Last Post: Jeff_t
  Misunderstanding kwargs? Donovan 2 2,234 Aug-04-2020, 08:09 PM
Last Post: Donovan
  Unpacking dictionary from .xlsx as Kwargs etjkai 5 2,795 Dec-27-2019, 05:31 PM
Last Post: etjkai
  opts vs kwargs Skaperen 4 2,408 Nov-30-2019, 04:57 AM
Last Post: Skaperen
  create dictionary from **kwargs that include tuple bluefrog 2 4,823 Oct-26-2016, 10:24 PM
Last Post: Larz60+
  How do you use *args and **kwargs? Gengar 3 19,349 Sep-20-2016, 04:22 PM
Last Post: Ofnuts

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020