May-25-2018, 05:52 PM
(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"?).