Sorry, that's currently the only solution. This isn't easy in C++ or Python either -- it's an unusual use case.
On Thu, Jul 22, 2010 at 7:48 PM, Chung <[email protected]> wrote: > Hi all, > > In the Python API, I'd like to insert a message in the middle of a > repeated message field. The only way I see for now is to copy the > contents of the field into a plain python list, clear the repeated > field, and then add/merge into the repeated field again one by one. > Is there a better way? > > Thanks! > > Chung > > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<protobuf%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/protobuf?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
