Hi,
currently i work on a file wich accesses different dictionaries and some of those queries are getting insanely long and repetitive. is there a way to simplify the repetitive ones in a way where those queues refer to a string or object that passes all the functions i use on that string / object to the origanl Queue?
for example:
instead of
hostList["all"]["children"][result["properties"]["type'']+"-switch"]["hosts].update({result["properties"]["name"]: None})
i would prefer to go with
testObject.update({result["properties"]["name"]: None})```
is there a way to do it like that or maybe another method to make that kind of code more readable ?
thanks
