About 1,618,224 results (1,790 milliseconds)

Updating/adding to nested object with new key/value pairs

https://groups.google.com/g/mongodb-user/c/39mTvwgdojw
Dec 15, 2010 ... What I want to do is update a nested object/array with new data, which in my application is a incoming Python dictionary, in an efficient way.

Python Dict and File | Python Education | Google for Developers

https://developers.google.com/edu/python/dict-files
Jul 23, 2024 ... Python's efficient key/value hash table structure is called a "dict". The contents of a dict can be written as a series of key:value pairs within braces.

Adding HashMaps/Dictionaries/Associative Arrays to Blockly

https://groups.google.com/g/blockly/c/sOBRz5d4LPg
The idea was, "what python code is generated if you have a `key-value block` outside of a `create dictionary` block? By making it one block, we bypassed that ...

Add an optional parameter to values() that returns a nested ...

https://groups.google.com/g/django-developers/c/m4lPPfFChNY
Currently, after calling values() and the query executes, the output is a single level dictionary, including foreign keys. I propose adding an extra ...

[sqlalchemy] Mapping dictionaries with string keys and record values

https://groups.google.com/g/sqlalchemy/c/Lns7c_ZPux8
It should, and maybe should raise an error if the two values don't match. It doesn't make much sense to add another collection class to do what the first one ...

python - How to convert a list of lists to a dictionary with redundant ...

http://feedproxy.google.com/~r/stackoverflow/ynOn/~3/c7XeN3kuFuo/how-to-convert-a-list-of-lists-to-a-dictionary-with-redundant-keys
Sep 17, 2019 ... One of the ways is to add new key-value pair if d is missing this key with value being empty list [] . Then append new value to that list.

Is there a way of adding dict as an extra attribute to objects?

https://groups.google.com/g/python_inside_maya/c/izd5hROg-LI
Mar 2, 2018 ... key"); Use a compound attribute, to mimic a Python dictionary, such that the value returned from cmds.getAttr("myNode.myCompound") is similar ...

Any way to create dict using table so key/values can be text aligned ...

https://groups.google.com/g/robotframework-users/c/Qeq79ZkfaI4
Dec 23, 2015 ... Support also non-string keys in key=value syntax. Deprecated old syntax to give keys and values separately. Returned dictionary is ordered and ...

ee.Dictionary | Google Earth Engine | Google for Developers

https://developers.google.com/earth-engine/apidocs/ee-dictionary
Oct 6, 2023 ... This constructor accepts the following types: 1) Another dictionary. ... Dictionary(dict)); // A list of key/value pairs (from previous dictionary) ...

Language Guide (proto 3) | Protocol Buffers Documentation

https://developers.google.com/protocol-buffers/docs/proto3
... keys. If you provide a key but no value for a map field, the behavior when the field is serialized is language-dependent. In C++, Java, Kotlin, and Python ...

How to correctly use the kivy.storage.JsonStore module?

https://groups.google.com/g/kivy-users/c/fBdXGr91TYE
Feb 28, 2014 ... Each item in this list is a tuple of key and dictionary values. So ... We could perhaps declare the global variables in python, load the value ...

Optimizing inserts with multiple vertices + edges

https://groups.google.com/g/gremlin-users/c/cA4YHjDexXk
Jun 13, 2019 ... Example: if there is a dictionary with key `a` and value `foo ... insert a single dictionary object using my query. Is there anything I ...

a Python-side value or SQL expression is required

https://groups.google.com/g/sqlalchemy/c/RTE4eHFK09w
Jan 18, 2016 ... each dictionary passed to insert().values() in a list contains the identical collection of string dictionary key values". Does that help ...

Set To Dictionary embed in a 'Run Keyword If' works in 'Testcase' but ...

https://groups.google.com/g/robotframework-devel/c/6IoK9n7bzFE
Jun 30, 2016 ... Another benefit is that Robot Framework converts the value into a special dictionary it uses also when creating dictionary variables in the ...

Get value map od node

https://groups.google.com/g/gremlin-users/c/_aRlf0J_VL8
Oct 17, 2017 ... Let assume that I use gremlin-python and I have a node - "Person". ... , then I added surname property and add another 2 persons. To my query (1) ...

[Proposal] Add invert() method to Map module

https://groups.google.com/g/elixir-lang-core/c/-6vijYFXdUQ/m/HQ3-jU2XFgAJ
Feb 6, 2019 ... https://stackoverflow.com/questions/44851342/reverse-a-dictionary-in-python ... It would add the interesting twist that neither key or value need ...

pretty printing 'complete' dictionary vars in a file after reading from a ...

https://groups.google.com/g/ansible-project/c/cTMs9gaM_C4
Feb 27, 2018 ... Can i not append each key-value pair to a temporary dictionary and print that dictionary ? ... Another thing, dictionary is not sorted so ...

python - Build new dictionary from what is not in list - Stack Overflow

http://feedproxy.google.com/~r/stackoverflow/tGpU/~3/hZQUDdPXEtY/build-new-dictionary-from-what-is-not-in-list
Sep 14, 2021 ... To modify your solution: Instead of: newdict[key] = groups. Use: newdict.setdefault(key, []).append(groups). Full code: