Jie Luo
9c76ea4413
Add upb python Py_mp_subscript for descriptor sequences.
...
A behavior diff that between upb and the other two implementations.
PiperOrigin-RevId: 561471616
1 year ago
Adam Cozzette
047df98dea
Move upb-x/ back to upb/
...
This is the second attempt to fix our Git history. This should allow
"git blame" to work correctly in the upb/ directory even though our
automation unexpectedly blew away that directory.
1 year ago
Adam Cozzette
895f190bda
Move upb to upb-x
1 year ago
Adam Cozzette
1ba80d7424
Move upb-temp/ back to upb/
1 year ago
Adam Cozzette
d38b8561e6
Move upb/ to upb-temp/
...
This will help us fix our Git commit history to ensure that git blame
works correctly for upb.
1 year ago
Adam Cozzette
6fc87fe3f7
Internal change
...
PiperOrigin-RevId: 560100839
1 year ago
Protobuf Team Bot
cab6c3e223
Internal change
...
PiperOrigin-RevId: 560096690
1 year ago
Adam Cozzette
0d1ba13e83
Move everything into new upb/ directory
1 year ago
Adam Cozzette
5aca728f72
Reformat copyright headers
...
PiperOrigin-RevId: 554509301
1 year ago
Eric Salo
41335a03be
normalize upb_Message_New()
...
We had _upb_Message_New(), which created a message from a mini table and was
being used outside of upb even though it is an internal-only function.
We also had upb_Message_New(), which created a message from a message def.
Now there is a single public function, upb_Message_New(), which creates a
message from a mini table and covers all use cases. (The internal version has the same definition and is used for inlining.)
PiperOrigin-RevId: 480169804
2 years ago
Protobuf Team
04cb5af6b6
Fix segmentation fault in python upb when instantiating field via repeated field assignment
...
PiperOrigin-RevId: 451406772
3 years ago
Joshua Haberman
12fffeb9c3
Rename CMessage -> Message, to make the change in https://github.com/protocolbuffers/upb/pull/617 work as intended.
...
The previous change did not have the desired effect, because the generated code uses the class named "Message" instead of "CMessage."
There was no real need to use the class "CMessage" instead of "Message." The new name is simpler and will make the previous change work.
PiperOrigin-RevId: 449309343
3 years ago
Joshua Haberman
3e75131bc1
Fixed Python test by implementing RichCompare() for RepeatedCompositeContainer.
...
PiperOrigin-RevId: 447613334
3 years ago
Joshua Haberman
f70eee4cce
Fixed broken tests by implementing RepeatedScalarContainer.__reduce__.
...
PiperOrigin-RevId: 447125225
3 years ago
Joshua Haberman
1c3d63dc25
Fixed a test by checking for the type of proto.
...
Also labeled a few tests for why we don't pass them.
3 years ago
Joshua Haberman
499c2cc8b1
upb_extreg, upb_msg
3 years ago
Joshua Haberman
ffdcc46390
Fixed a handful of reference leaks found in a debug build of Python ( #484 )
...
* Fixed some reference leaks.
* Fixed a few reference leaks.
* Fixed a few more memory errors.
* Fixed a few more reference leaks.
* Revert minimal_test.py.
* Re-enable limited API.
* Removed some debugging and spurious changes.
* Addressed PR comments.
3 years ago
Joshua Haberman
1c955f37ce
Mass API rename and clang-reformat ( #485 )
...
* Wave 1: upb_fielddef.
* upb_fielddef itself.
* upb_oneofdef.
* upb_msgdef.
* ExtensionRange.
* upb_enumdef
* upb_enumvaldef
* upb_filedef
* upb_methoddef
* upb_servicedef
* upb_symtab
* upb_defpool_init
* upb_wellknown and upb_syntax_t
* Some constants.
* upb_status
* upb_strview
* upb_arena
* upb.h constants
* reflection
* encode
* JSON decode.
* json encode.
* msg_internal.
* Formatted with clang-format.
* Some naming fixups and comment reformatting.
* More refinements.
* A few more stragglers.
* Fixed PyObject_HEAD with semicolon. Removed TODO entries.
3 years ago
Joshua Haberman
5953ac4736
Backed out Reify() signature change.
3 years ago
Joshua Haberman
7de3052fbb
Implemented reverse().
3 years ago
Joshua Haberman
a2e280e865
Fixed slice assignment of unequal length.
3 years ago
Joshua Haberman
1be47593f0
Fixed disconnecting before Clear().
3 years ago
Joshua Haberman
e5d8d28b0f
Addressed PR comments.
3 years ago
Joshua Haberman
54b775d4f4
WIP.
3 years ago
Joshua Haberman
0549fc0ce1
Fixed several tests.
3 years ago
Joshua Haberman
69d948a9cb
Implemented deep copy for repeated fields.
3 years ago
Joshua Haberman
58960e0442
Addressed PR comments.
3 years ago
Joshua Haberman
faac2d8b78
Updated some terminology and added comments.
3 years ago
Joshua Haberman
a949e45075
Added decref in error path.
3 years ago
Joshua Haberman
c8f1de8688
Addressed PR comments.
3 years ago
Joshua Haberman
80776e363d
Changed the style of a few range checks.
3 years ago
Joshua Haberman
5f0978abb7
Added tests for slice deletion and fixed bugs.
3 years ago
Joshua Haberman
2a87c3ddb8
Addressed PR comments.
3 years ago
Joshua Haberman
f6e76190e1
Addressed PR comments.
3 years ago
Joshua Haberman
f85cf27ea4
Fixes to delete algorithm.
3 years ago
Joshua Haberman
d067bd3f41
Addressed PR comments.
3 years ago
Joshua Haberman
2d4ffbf1c4
Addressed PR comments.
3 years ago
Joshua Haberman
455426ec70
Added repeated fields.
3 years ago