On Sat, Nov 14, 2009 at 3:39 AM, Francisco <dallar...@gmail.com> wrote:

>
> Alexander,
>
> if you take a look at the API reference:
>
> static bool ParseFromString(const string & input, Message * output)
>
> you have to pass the output variable as the second parameter.
>

The question appeared to be about Python, not C++.

The problem is that he's calling x.ParseFromString(), which fills in the
message object pointed to by x, but then he's reassigning x to the return
value of ParseFromString(), which is None since ParseFromString() does not
return anything.

--~--~---------~--~----~------------~-------~--~----~
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