

def _serialize(self, entity, pb, prefix='', parent_repeated=False, projection=None):
    values = prop._get_base_value_unwrapped_as_list(entity)
    for value in values:
        if (value is not None):
            for (unused_name, prop) in sorted(value._properties.iteritems()):
                prop._serialize(value, pb, ((prefix + self._name) + '.'), (self._repeated or parent_repeated), projection=projection)
        else:
            super(StructuredProperty, self)._serialize(entity, pb, prefix=prefix, parent_repeated=parent_repeated, projection=projection)

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py StructuredProperty._serialize/VarMisuse@28/33 `self`->`prop`