There was an error while loading. Please reload this page.
1 parent a7b2e1f commit e5556cdCopy full SHA for e5556cd
3 files changed
Lib/test/test_inspect/test_inspect.py
@@ -6340,7 +6340,7 @@ def test_socket_module_has_signatures(self):
6340
# depends on the number of the arguments.
6341
methods_no_signature = {'ioctl', 'sendto', 'setsockopt'}
6342
# These have parameters with unrepresentable default values.
6343
- methods_unsupported_signature = {'listen', 'sendmsg', 'sendmsg_afalg'}
+ methods_unsupported_signature = {'listen', 'sendmsg_afalg'}
6344
defined = vars(socket.SocketType).keys()
6345
self._test_module_has_signatures(socket,
6346
no_signature, unsupported_signature,
Modules/clinic/socketmodule.c.h
Modules/socketmodule.c
@@ -4990,9 +4990,9 @@ sock_sendmsg_impl(PySocketSockObject *s, void *data)
4990
_socket.socket.sendmsg
4991
self as s: self(type="PySocketSockObject *")
4992
buffers as data_arg: object
4993
- ancdata as cmsg_arg: object = NULL
+ ancdata as cmsg_arg: object(c_default="NULL") = ()
4994
flags: int = 0
4995
- address as addr_arg: object = NULL
+ address as addr_arg: object(c_default="NULL") = None
4996
/
4997
4998
Send normal and ancillary data to the socket.
@@ -5016,7 +5016,7 @@ static PyObject *
5016
_socket_socket_sendmsg_impl(PySocketSockObject *s, PyObject *data_arg,
5017
PyObject *cmsg_arg, int flags,
5018
PyObject *addr_arg)
5019
-/*[clinic end generated code: output=3b4cb1110644ce39 input=8ae408971a3aa329]*/
+/*[clinic end generated code: output=3b4cb1110644ce39 input=5fdf9b49bed3848b]*/
5020
5021
{
5022
Py_ssize_t i, ndatabufs = 0, ncmsgs, ncmsgbufs = 0;
0 commit comments