Is there a list-of-dictionaries-like property?
I hope you don't mind my stupid question, but I want to hear the expert's opinions. Is there a simple way to implement a Python-like list of dictionaries as property within a ZClass? I need to store a data structure like this (a list of dictionaries): [{'uid':1,'status':0},{'uid':2,'status':1},{'uid':3,'status':0},{'uid':4,'s tatus':3}] The obvoius thing to do would be creating a new class or am I missing something? Thanks for some hints, Juergen
Juergen R. Plasser / HEXAGON writes:
Is there a simple way to implement a Python-like list of dictionaries as property within a ZClass? I need to store a data structure like this (a list of dictionaries):
[{'uid':1,'status':0},{'uid':2,'status':1},{'uid':3,'status':0},{'uid':4,'s tatus':3}]
The obvoius thing to do would be creating a new class or am I missing something? I think you must go this way...
Dieter
participants (2)
-
Dieter Maurer -
Juergen R. Plasser / HEXAGON