Actually version 2.4.0 has been uploaded and is in the file list, just
hasn't been marked "current" yet.

That said, note that using extend() on a repeated message makes deep copies
of all the message objects.  Repeatedly calling add() is more efficient.

On Wed, Jan 19, 2011 at 6:57 AM, Ben Ford <b.f...@solaisecapital.com> wrote:

> Hi All,
>
> I've just started playing with protobuf and was mightily surprised
> when the following doens't work:
>
> // From the tutorial:
> message Foo {
>  repeated Bar bars = 1;
> }
> message Bar {
>  optional int32 i = 1;
> }
>
> >>> foo = Foo()
> >>> foo.bars.extend([Bar(), Bar(), Bar()])
>
> It would seem that the extend method is only available in 2.4.0 but
> the only version available for download seems to be 2.3.0. Is the new
> version release happening soon, or should I just build from SVN?
>
> Thanks
> Ben
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to protobuf@googlegroups.com.
> To unsubscribe from this group, send email to
> protobuf+unsubscr...@googlegroups.com<protobuf%2bunsubscr...@googlegroups.com>
> .
> 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 protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to