Open rassie opened 6 years ago
kwargs.get() will only use a default parameter if the key is not found, not if it's None. In this case, every parameter is being given to the function so we'd actually have to check for the return value of kwargs.get() and then set the default.
kwargs.get()
None
kwargs.get()
will only use a default parameter if the key is not found, not if it'sNone
. In this case, every parameter is being given to the function so we'd actually have to check for the return value ofkwargs.get()
and then set the default.