Skip to content

Commit 37232aa

Browse files
aisklpyu001
andauthored
[3.15] gh-155621: Fix unrepresentable defaults in socket.sendmsg() signature (GH-155623) (GH-155802)
(cherry picked from commit e5556cd) Co-authored-by: stevens <lipengyu@kylinos.cn>
1 parent 5f5251e commit 37232aa

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

‎Modules/clinic/socketmodule.c.h‎

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Modules/socketmodule.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4925,9 +4925,9 @@ sock_sendmsg_impl(PySocketSockObject *s, void *data)
49254925
_socket.socket.sendmsg
49264926
self as s: self(type="PySocketSockObject *")
49274927
buffers as data_arg: object
4928-
ancdata as cmsg_arg: object = NULL
4928+
ancdata as cmsg_arg: object(c_default="NULL") = ()
49294929
flags: int = 0
4930-
address as addr_arg: object = NULL
4930+
address as addr_arg: object(c_default="NULL") = None
49314931
/
49324932
49334933
Send normal and ancillary data to the socket.
@@ -4951,7 +4951,7 @@ static PyObject *
49514951
_socket_socket_sendmsg_impl(PySocketSockObject *s, PyObject *data_arg,
49524952
PyObject *cmsg_arg, int flags,
49534953
PyObject *addr_arg)
4954-
/*[clinic end generated code: output=3b4cb1110644ce39 input=8ae408971a3aa329]*/
4954+
/*[clinic end generated code: output=3b4cb1110644ce39 input=5fdf9b49bed3848b]*/
49554955

49564956
{
49574957
Py_ssize_t i, ndatabufs = 0, ncmsgs, ncmsgbufs = 0;

0 commit comments

Comments
 (0)