We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If I have a definition like so:
enum Status { IN_PROGRESS = 1; ERROR = 2; } message Foo { message Bar { optional Status status = 1; } optional Bar bar = 1; }
And code like so:
foo = Foo() foo.bar = Foo_Bar() foo.bar.status = Status.IN_PROGRESS print foo.bar.status
None is printed instead of 1. Things work ok if I move the status field from the inner Bar message to the outer Foo.
None
1
status
Bar
Foo
The text was updated successfully, but these errors were encountered:
I can work around this by constructing the inner object first and then assigning it to the parent object. For example:
foo = Foo() bar = Foo_Bar() bar.status = Status.IN_PROGRESS foo.bar = bar print foo.bar.status
Sorry, something went wrong.
No branches or pull requests
If I have a definition like so:
And code like so:
None
is printed instead of1
. Things work ok if I move thestatus
field from the innerBar
message to the outerFoo
.The text was updated successfully, but these errors were encountered: