Skip to content

Commit

Permalink
upb python CopyFrom() back to Serialize and Pasre wrap for protocolbu…
Browse files Browse the repository at this point in the history
…ffers/protobuf#13485

We will go forward with memory copy in 25.0

PiperOrigin-RevId: 557178075
  • Loading branch information
anandolee authored and copybara-github committed Aug 15, 2023
1 parent 2344281 commit 941b6dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -1658,8 +1658,11 @@ static PyMethodDef PyUpb_Message_Methods[] = {
{"ClearExtension", PyUpb_Message_ClearExtension, METH_O,
"Clears a message field."},
{"ClearField", PyUpb_Message_ClearField, METH_O, "Clears a message field."},
#ifndef PROTO2_OPENSOURCE
// TODO(b/296078718): add the CopyFrom back when we are able to repo
{"CopyFrom", PyUpb_Message_CopyFrom, METH_O,
"Copies a protocol message into the current message."},
#endif // !PROTO2_OPENSOURCE
{"DiscardUnknownFields", (PyCFunction)PyUpb_Message_DiscardUnknownFields,
METH_NOARGS, "Discards the unknown fields."},
{"FindInitializationErrors", PyUpb_Message_FindInitializationErrors,
Expand Down

0 comments on commit 941b6dd

Please sign in to comment.