Python Forum
[Python Core] Keyword for direct passthrough of **kwargs to super().__init__
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Python Core] Keyword for direct passthrough of **kwargs to super().__init__
#5
(May-25-2018, 05:38 PM)buran Wrote: you are free to have all keywords you want explicitly mentioned, and then have **kwargs as catch all for all that are irrelevant and simply ignore them... (that is my second example)
I know that it is possible to 'do it by hand' but when your IDE shows you the arguments a class takes you will think for a second if you need to look into the documentation of this class what kwargs you can pass in. I personally find this kind of ugly (even if you have a good documentation - should it just say "Yes, the init says you can pass in kwargs but doing so will crash this program"?).
Reply


Messages In This Thread
RE: [Python Core] Keyword for direct passthrough of **kwargs to super().__init__ - by miallo - May-25-2018, 05:52 PM

Forum Jump:

User Panel Messages

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