2 ms·
No, it’s a contract guarantee. It says, except for the first parameter, I make no guarantee on the order of these parameters. def verb(object, **adjectives
by Spivak 5y ago
No, it’s a contract guarantee. It says, except for the first parameter, I make no guarantee on the order of these parameters.
def verb(object, **adjectives)
is the pythonic way to pass an “options” dict. It doesn’t make sense as positional parameters and makes for a worse API.
- DangitBobby 5y agoHowever, allowing them to call them positionally doesn't actually change the capability of using it like an "options" dict. It makes exactly the same API minus flexibility for the caller.