Maybe using the Closure Library's goog.object.getKeys()?   

http://google.github.io/closure-library/api/namespace_goog_object.html


On Thursday, May 19, 2016 at 2:39:14 AM UTC-4, Yan Yan wrote:
>
> 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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to