Jun-29-2018, 08:33 PM
I can't think of an efficient way to handle that. You could do:
container = document sub_keys = key.split('.') for sub_key in sub_keys[:-1]: container = container[sub_key] container[sub_keys[-1]] = valuebut I can't see that being very efficient.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures