Why Nostr? What is Njump?
2023-08-12 04:00:31
in reply to

Dr. jonny phd on Nostr: In Python, *kwargs in a function signature is passed as a dictionary within the ...

In Python, *kwargs in a function signature is passed as a dictionary within the function. you do *not need a MATLAB style argument unpacking function, you can in fact just go kwargs['key']. let the cold clammy ghosts of MATLAB fade away, we don't need them here anymore.

you do not need to check if the dictionary contains the key and raise an error if it doesn't. KeyError is already explicitly that. again MATLAB is not here anymore, we're using a language where they actually work on the error messages.
Author Public Key
npub1nyn0d3f3vgefljenfq0schd55q2mm43a2errd6sncdw5jawpwm3s3dxmrh