Members that start with an underscore are private and may go away in the
future.  Use SetInParent(), which is explicitly meant for this exact
purpose:

  a.Extensions[F].SetInParent();

On Thu, Aug 5, 2010 at 10:56 AM, CARSON DEAN FENIMORE <fenim...@gmail.com>wrote:

> Let's say you have a message (A) that has an extension field (F) that
> is a message (B) that no fields. To "set" F on an instance of A in c++
> you would call instance.MutableExtension(F).  It appears the python
> analog is something like:
>
>    a = A()
>    a.Extensions[F]._Modified()
>
> Is this correct?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to proto...@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 proto...@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