Skip to content
New issue

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

Add constructing version of Any unpacking to Python Protobuf library. #20401

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Feb 19, 2025

Add constructing version of Any unpacking to Python Protobuf library.

The main benefit here is enabling unpacking in an expression context whereas previously multiple statements were required. The return/raise API is also more idiomatic to Python than the current one using an out parameter.

@copybara-service copybara-service bot changed the title Internal change Add constructing version of Any unpacking to Python Protobuf library. Feb 19, 2025
@copybara-service copybara-service bot force-pushed the test_728769960 branch 2 times, most recently from b9880d6 to 52dd71d Compare February 19, 2025 23:44
The main benefit here is enabling unpacking in an expression context whereas previously multiple statements were required. The return/raise API is also more idiomatic to Python than the current one using an out parameter.

PiperOrigin-RevId: 728769960
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant