Status: New
Owner: ken...@google.com
Labels: Type-Defect Priority-Medium

New issue 228 by palotai....@gmail.com: Python reading text_format misses empty extension field
http://code.google.com/p/protobuf/issues/detail?id=228

What steps will reproduce the problem?
1. Extend a message A with an empty extension message E (see http://groups.google.com/group/protobuf/browse_thread/thread/26aef51ce964ac09/d719210277a16df0)
2. Write A as protobuf in text format, A having the extension set.
3. Read the buffer written in (2) using google.protobuf.text_format in python

What is the expected output? What do you see instead?

The message A should contain the empty extension. But the extension is missing. Worked around by adding "sub_message.SetInParent" in text_format.py line 208.

What version of the product are you using? On what operating system?

protobuf-2.3.0 linux/python.

Please provide any additional information below.

python, extension, empty

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