Commit graph

3 commits

Author SHA1 Message Date
Jakob Cornell
fb78c09e16 Add constructing unpack routine to Python Protobuf Any API.
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 and status return.

PiperOrigin-RevId: 731911306
2025-02-27 16:44:02 -08:00
Adam Cozzette
0d42a969e3 Replace protobuf_unittest package with proto2_unittest
For historical reasons, our internal copy of the codebase uses
`proto2_unittest` while the open source one uses `protobuf_unittest`. This adds
a lot of friction to syncing between the two, and there's no great reason to
keep maintaining this difference, so let's just go with `proto2_unittest`.

PiperOrigin-RevId: 721951543
2025-01-31 17:06:33 -08:00
Jie Luo
dd95e5b1fa Nextgen Proto Pythonic API: Add any.py
PiperOrigin-RevId: 664995003
2024-08-19 15:02:47 -07:00