Skip to content

ListValue is not iterable #636

Open
Open
@powellnorma

Description

@powellnorma

Summary

ListValue is not iterable

What is the feature request for?

The core library

The Problem

With official protobuf_pb2, you can do:

args = ListValue()
args.extend([1,2,3])
some_function(*args)

But with betterproto this doesn't work currently

class ListValue(betterproto.Message):

The Ideal Solution

Add some wrapper methods (extend, iter, ..)

The Current Solution

Always use .value

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions