Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Commit 78e9694

Browse files
authored
upb python CopyFrom() back to Serialize/Pasre wrap
To unblock protocolbuffers/protobuf#13485 The main will keep the current memory copy and continue try to repro. We will go forward with memory copy in 25.0 THIS MEANS: The bug will return in 25.0 if we don't find an adequate repro in time.
1 parent c6fc454 commit 78e9694

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/message.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,8 +1655,11 @@ static PyMethodDef PyUpb_Message_Methods[] = {
16551655
{"ClearExtension", PyUpb_Message_ClearExtension, METH_O,
16561656
"Clears a message field."},
16571657
{"ClearField", PyUpb_Message_ClearField, METH_O, "Clears a message field."},
1658+
#ifndef PROTO2_OPENSOURCE
1659+
// TODO(b/296078718): add the CopyFrom back in 25.0 fro OSS
16581660
{"CopyFrom", PyUpb_Message_CopyFrom, METH_O,
16591661
"Copies a protocol message into the current message."},
1662+
#endif // !PROTO2_OPENSOURCE
16601663
{"DiscardUnknownFields", (PyCFunction)PyUpb_Message_DiscardUnknownFields,
16611664
METH_NOARGS, "Discards the unknown fields."},
16621665
{"FindInitializationErrors", PyUpb_Message_FindInitializationErrors,

0 commit comments

Comments
 (0)