I am using protocol buffers in python and I have a Person message
Person
repeated uint64 id
but when I try to assign a value to it like:<
If you don't want to extend but overwrite it completely, you can do:
person.id[:] = [1, 32, 43432]
This approach will also work to clear the field entirely:
del person.id[:]