[Question] How to set multiple items in a PyDict simultaneously? #3362
Unanswered
rkshthrmsh
asked this question in
Questions
Replies: 1 comment
-
We do not currently have an API for this; maybe #1703 might solve this eventually. I agree it can be tedious. You may also find |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have come across the
set_item
method for setting a single key-value pair in aPyDict
. However, this quickly becomes many lines of code for setting multiple items. I was wondering if there is a way to set multiple items simultaneously when the key-value pairs are already known?Beta Was this translation helpful? Give feedback.
All reactions