You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
asyncio: incorrect docstring for loop.sock_sendto (copied from sock_sendall) #150952
BaseSelectorEventLoop.sock_sendto() in Lib/asyncio/selector_events.py has a docstring that just a copy-paste of BaseSelectorEventLoop.sock_sendall() docstring.
The reference documentation already describes it correctly: loop.sock_sendto()
Current docstring:
"""Send data to the socket.The socket must be connected to a remote socket. This method continuesto send data from data until either all data has been sent or anerror occurs. None is returned on success. On error, an exception israised, and there is no way to determine how much data, if any, wassuccessfully processed by the receiving end of the connection."""
Proposed fix: replace the docstring with correct datagram description:
"""Send a datagram from sock to address.The socket does not have to be connected. This method sends thewhole datagram in a single call. Return the number of bytes sent."""
Activity
deadlovelll commentedon Jun 5, 2026
I'll create the pr
gh-150952: Fix incorrect sock_sendto docstring (#150953)
[3.13] gh-150952: Fix incorrect sock_sendto docstring (GH-150953) (#1…
[3.14] gh-150952: Fix incorrect sock_sendto docstring (GH-150953) (#1…
[3.15] gh-150952: Fix incorrect sock_sendto docstring (GH-150953) (#1…