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__
#6
(May-25-2018, 05:52 PM)miallo Wrote: 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"?).
sorry, I don't get what you want. Even in your original example you have them explicitly defined, in addition to this "new" catch-all-pass-trough thing
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


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

Forum Jump:

User Panel Messages

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