Hi guys,
I'm trying initialize a list of a lists in python but when I try initialize the sublist, pycapn emits this error:
AttributeError: 'capnp.lib.capnp._DynamicListBuilder' object has no attribute 'init'
My code (problematic line in blue):
myListProto = proto.init("myList", len(self._myList))
for i in xrange(len(self._myList)):
subListProto = myListProto.init(i, len(self._myList[i]))
for j in xrange(len(self._myList[i])):
subListProto[i][j] = self._myList[i][j]My proto class:
struct MyClassProto
{
myList @0 :List(List(UInt32));
}In sumary, how I initialize a sublist of variable length?
Thanks in advance,
David