mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
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 |
||
|---|---|---|
| .. | ||
| protobuf | ||
| __init__.py | ||