foo.bar1 = 1
foo.bar2 = 2
foo.bar3 = 3
foo["bar1"] = 1
foo["bar2"] = 2
foo["bar3"] = 3

Doing this 20 times is kinda clumsy. And __dict__ doesnt work.

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
For more options, visit

Reply via email to