dep-protobuf/python/google
Samuel Benzaquen 4bdd07858d Fix subscript access for free threading.
Subscript is a read-only operation and it should not try to do mutable operations.

Fix AssureWritable to also work on repeated sub messages. It now keeps an index hint to avoid an O(n) lookup if possible.

Fix BuildSubMessageFromPointer to not create MUTABLE messages. It is only taking a non-mutable one.

Fix GetItem to not perform mutable operations. This fixes the race in Subscript.

PiperOrigin-RevId: 967832766
2026-08-21 15:54:48 -07:00
..
protobuf Fix subscript access for free threading. 2026-08-21 15:54:48 -07:00
__init__.py drop-deprecated-pkg-resources-declare (#22442) 2025-07-11 11:09:55 -07:00