Jan-02-2025, 07:45 AM
This is nested dictionary and I appears that you want to update subdictionary in schema:
schema['keys']
schema = ({'type': 'dict', 'keys': {'2021': {'type': 'integer', 'default': 1234}}}) schema_update = ({'2022': {'type': 'integer', 'default': '5678'}}) schema['keys'].update(schema_update) # schema is now: {'type': 'dict', 'keys': {'2021': {'type': 'integer', 'default': 1234}, '2022': {'type': 'integer', 'default': '5678'}}}
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.