https://github.com/python/cpython/commit/044a1e13d5cfc91b0a8774e936877e91cbac3a16
commit: 044a1e13d5cfc91b0a8774e936877e91cbac3a16
branch: main
author: Alexander Ershov <[email protected]>
committer: picnixz <[email protected]>
date: 2025-03-30T08:19:36Z
summary:
gh-129994: update docs when using `dualstack_ipv6` in `socket.create_server`
(#129996)
files:
M Doc/library/socket.rst
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index bc888dc593cf69..1bc7f76b5ba694 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -882,10 +882,10 @@ The following functions all create :ref:`socket objects
<socket-objects>`.
, a default reasonable value is chosen.
*reuse_port* dictates whether to set the :data:`SO_REUSEPORT` socket option.
- If *dualstack_ipv6* is true and the platform supports it the socket will
- be able to accept both IPv4 and IPv6 connections, else it will raise
- :exc:`ValueError`. Most POSIX platforms and Windows are supposed to support
- this functionality.
+ If *dualstack_ipv6* is true, *family* is :data:`AF_INET6` and the platform
+ supports it the socket will be able to accept both IPv4 and IPv6
connections,
+ else it will raise :exc:`ValueError`. Most POSIX platforms and Windows are
+ supposed to support this functionality.
When this functionality is enabled the address returned by
:meth:`socket.getpeername` when an IPv4 connection occurs will be an IPv6
address represented as an IPv4-mapped IPv6 address.
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]