Issue 206 in protobuf: Python: possible to set invalid enum value

72 views
Skip to first unread message

prot...@googlecode.com

unread,
Jul 19, 2010, 5:33:42 PM7/19/10
to prot...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 206 by ivan.ko...@gmail.com: Python: possible to set invalid enum
value
http://code.google.com/p/protobuf/issues/detail?id=206

It's currently possible to set an enum field to an invalid value. I think
it should throw ValueError instead.

https://code.google.com/apis/protocolbuffers/docs/reference/python-generated.html#enum
mentions that "A future version of the library may explicitly disallow
this."

prot...@googlecode.com

unread,
Jul 20, 2010, 6:00:40 PM7/20/10
to prot...@googlegroups.com
Updates:
Owner: pesho.petrov

Comment #1 on issue 206 by ken...@google.com: Python: possible to set

Petar, I believe you were already planning to address this? Or did we
decide that this change would break too many people?

Reply all
Reply to author
Forward
0 new messages