def SerializeEntries(entries):
 output = []
 for (python_format, wire_format, type_descriptor) in entries:
  if ((wire_format is None) or (python_format and type_descriptor.IsDirty(python_format))):
   wire_format = type_descriptor.ConvertToWireFormat(python_format)
  output.extend(wire_format)
 return ''.join(output)

def SerializeEntries ( entries ) : output = [ ] for ( python_format , wire_format , type_descriptor ) in entries : if ( ( wire_format is None ) or ( python_format and type_descriptor . IsDirty ( python_format ) ) ) : wire_format = type_descriptor . ConvertToWireFormat ( python_format ) output . extend ( wire_format ) return '' . join ( output )
serializes given triplets of python and wire values and a descriptor .