Issue 252 in protobuf-dt: Enumerated types accessed through class trigger Undefined import

8 views
Skip to first unread message

proto...@googlecode.com

unread,
Mar 29, 2016, 3:40:26 PM3/29/16
to proto...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 252 by bigbr...@gmail.com: Enumerated types accessed through
class trigger Undefined import
https://code.google.com/p/protobuf-dt/issues/detail?id=252

message Foo {
enum Bar {
BAZ = 0;
}
required Bar bar = 1;
}


from autogen import Foo_pb2

foo = Foo_pb2.Foo()
foo.bar = foo.BAZ

works, but:

bar = Foo_pb2.Foo.BAZ

...does not, despite being legal.

[Not that the usage case matters, but this would be storing bar as a
temporary variable to be later assigned to a Foo object.]



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

Eclipse 4.5.2, OSX 10.10.5.
Not sure off hand how to tell what version of protobuf-dt, but I downloaded
it recently and it doesn't look like it has been actively maintained for at
least a year.




--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

proto...@googlecode.com

unread,
Mar 29, 2016, 3:45:09 PM3/29/16
to proto...@googlegroups.com

Comment #1 on issue 252 by bigbr...@gmail.com: Enumerated types accessed
through class trigger Undefined import
https://code.google.com/p/protobuf-dt/issues/detail?id=252

(In case it wasn't clear, this is python.)

proto...@googlecode.com

unread,
Mar 29, 2016, 3:46:29 PM3/29/16
to proto...@googlegroups.com

Comment #2 on issue 252 by bigbr...@gmail.com: Enumerated types accessed
through class trigger Undefined import
https://code.google.com/p/protobuf-dt/issues/detail?id=252

I should have mentioned, this is python. pydev 4.5.4. Protocol Buffer
editor 1.4.3
Reply all
Reply to author
Forward
0 new messages