- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for technique (0.13 sec)
-
docs/en/docs/advanced/additional-responses.md
You might want to have some predefined responses that apply to many *path operations*, but you want to combine them with custom responses needed by each *path operation*. For those cases, you can use the Python technique of "unpacking" a `dict` with `**dict_to_unpack`: ```Python old_dict = { "old key": "old value", "second old key": "second old value", } new_dict = {**old_dict, "new key": "new value"} ```
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat May 18 23:43:13 UTC 2024 - 8.8K bytes - Viewed (0)