parameters: (x)
docstring: Convert x to a Python list. x can be a Protobuf container, a list or tuple, or scalar
docstring_summary: Convert x to a Python list. x can be a Protobuf container, a list or tuple, or scalar
docstring_tokens: Convert x to a Python list . x can be a Protobuf container a list or tuple or scalar
function: def tolist(x):
    "Convert x to a Python list. x can be a Protobuf container, a list or tuple, or scalar"
    if isinstance(x,google.protobuf.internal.containers.RepeatedScalarFieldContainer):
      return [z for z in x]
    elif isinstance(x, (list,tuple)):
      return [z for z in x]
    else:
      return [x]
function_tokens: def tolist ( x ) : if isinstance ( x , google . protobuf . internal . containers . RepeatedScalarFieldContainer ) : return [ z for z in x ] elif isinstance ( x , ( list , tuple ) ) : return [ z for z in x ] else : return [ x ]