Remove two pool-membership conditions guarding the C++ equivalent of obj.SerializePartialToString()
#142
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Remove two pool-membership conditions guarding the C++ equivalent of
obj.SerializePartialToString()
The main change in this CL is to remove two conditions in
PyProtoIsCompatible()
:Rationale for removing these conditions:
All that matters for protobuf compatibility is that the
full_name
is the same. (Thanks @kmoffett for that insight!)Cross-extension-module ABI compatibility is not a concern because only the Python API is used in the relevant code paths serializing Python protobuf objects to Python
bytes
(equivalent to callingobj.SerializePartialToString()
from Python).All other changes in this CL are secondary: small-scale refactoring, slight naming changes, additional tests for error conditions.