Commit graph

8 commits

Author SHA1 Message Date
Protobuf Team Bot
2901ce6db3 Handle refcount issues on allocation failure in python
PiperOrigin-RevId: 968724072
2026-08-21 15:34:04 -07:00
Joshua Haberman
814a54ec6d Removed no-op enabled_aliasing parameter to constructor.
This parameter has been a no-op since cl/836758888.

PiperOrigin-RevId: 836967473
2025-11-25 23:24:08 -08:00
Joshua Haberman
624e3eb3a1 Removed all external calls to upb_EpsCopyStream_CheckDataSizeAvailable() and made it private.
PiperOrigin-RevId: 836930111
2025-11-25 21:17:54 -08:00
Protobuf Team Bot
5f1c06a28d Add debug asserts for bounds checking of scalar ops.
PiperOrigin-RevId: 800215822
2025-08-27 16:28:59 -07:00
Geoffry Song
5752b2d07b [python] Remove semicolon after PyObject_HEAD (#16123)
`PyObject_HEAD` already expands to a field with a semicolon; the extra semicolon is unnecessary, and makes some compilers unhappy.

Closes #16123

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/16123 from goffrie:pyobject_head 947438678f
PiperOrigin-RevId: 700735003
2024-11-27 10:08:21 -08:00
Protobuf Team Bot
ae488a016a Use noncontiguous unknown fields API in upb python
PiperOrigin-RevId: 696258062
2024-11-13 13:54:47 -08:00
Protobuf Team Bot
0fab773c1d Update remainder of upb to new short license style.
PiperOrigin-RevId: 584116886
2023-11-20 13:43:32 -08:00
Adam Cozzette
501ececd39 Reorganize upb file structure
This change moves almost everything in the `upb/` directory up one level, so
that for example `upb/upb/generated_code_support.h` becomes just
`upb/generated_code_support.h`. The only exceptions I made to this were that I
left `upb/cmake` and `upb/BUILD` where they are, mostly because that avoids
conflict with other files and the current locations seem reasonable for now.

The `python/` directory is a little bit of a challenge because we had to merge
the existing directory there with `upb/python/`. I made `upb/python/BUILD` into
the BUILD file for the merged directory, and it effectively loads the contents
of the other BUILD file via `python/build_targets.bzl`, but I plan to clean
this up soon.

PiperOrigin-RevId: 568651768
2023-09-26 14:38:35 -07:00
Renamed from upb/python/unknown_fields.c (Browse further)