Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
kwargs question
#9
First I have to tell you guys this is a self teaching excercise, a hobby and always will be a hobby. Having said that I like things to be right.

The responses I have from you four are pretty deep but interesting, if I take it one piece at a time.

snippsat you are absolutely right, the code I have been using is old, it is a problem with python because it has been around for a long time and python has evolved considerably. The example I am working from is at least 7 years old but it is one of the few I was able to google for my purpose.

deanhystad was the first to mention super() which is something else I want to get my head around but the example did not work with my code, the example of super from sippsat did, that made me happy but I still need to find out what the subtle difference is. The error I got at first was 'ClassName' has no attribute 'tk'. At the moment I have left the super().__init__(master ...... in my widget class.

stevendaprano, I think you know my brain capacity, your post was easy for me to understand and I have yet to take the quiz at the end but be assured I will, and I also learnt about unpacking a little.

Maybe *args and **kwargs are not as important in this moment of time as I thought but you guys have certainly highlighted the use of super.

ty
Jeff
BashBedlam likes this post
Reply


Messages In This Thread
kwargs question - by Jeff_t - Feb-15-2022, 07:25 PM
RE: kwargs question - by menator01 - Feb-15-2022, 07:45 PM
RE: kwargs question - by Jeff_t - Feb-15-2022, 08:38 PM
RE: kwargs question - by deanhystad - Feb-15-2022, 08:48 PM
RE: kwargs question - by Jeff_t - Feb-15-2022, 09:04 PM
RE: kwargs question - by deanhystad - Feb-15-2022, 09:10 PM
RE: kwargs question - by stevendaprano - Feb-16-2022, 10:59 AM
RE: kwargs question - by snippsat - Feb-16-2022, 03:31 PM
RE: kwargs question - by Jeff_t - Feb-16-2022, 04:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How do I instantiate a class with **kwargs? palladium 6 7,597 Feb-16-2023, 06:10 PM
Last Post: deanhystad
  Misunderstanding kwargs? Donovan 2 2,301 Aug-04-2020, 08:09 PM
Last Post: Donovan
  **kwargs question DPaul 10 4,467 Apr-01-2020, 07:52 AM
Last Post: buran
  Unpacking dictionary from .xlsx as Kwargs etjkai 5 2,914 Dec-27-2019, 05:31 PM
Last Post: etjkai
  opts vs kwargs Skaperen 4 2,511 Nov-30-2019, 04:57 AM
Last Post: Skaperen
  create dictionary from **kwargs that include tuple bluefrog 2 4,910 Oct-26-2016, 10:24 PM
Last Post: Larz60+
  How do you use *args and **kwargs? Gengar 3 19,867 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