diff options
author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | 2020-12-31 13:16:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-31 13:16:50 (GMT) |
commit | f4936ad1c4d0ae1948e428aeddc7d3096252dae4 (patch) | |
tree | 41b6303976816e01eb30c05420d50236570789c7 /Doc/library/socket.rst | |
parent | 9655434cca5dfbea97bf6d355aec028e840b289c (diff) | |
download | cpython-f4936ad1c4d0ae1948e428aeddc7d3096252dae4.zip cpython-f4936ad1c4d0ae1948e428aeddc7d3096252dae4.tar.gz cpython-f4936ad1c4d0ae1948e428aeddc7d3096252dae4.tar.bz2 |
bpo-42393: Raise OverflowError iso. DeprecationWarning on overflow in socket.ntohs and socket.htons (GH-23980)
Diffstat (limited to 'Doc/library/socket.rst')
-rwxr-xr-x | Doc/library/socket.rst | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index 4511ff9..2255b82 100755 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -907,11 +907,9 @@ The :mod:`socket` module also offers various network-related services: where the host byte order is the same as network byte order, this is a no-op; otherwise, it performs a 2-byte swap operation. - .. deprecated:: 3.7 - In case *x* does not fit in 16-bit unsigned integer, but does fit in a - positive C int, it is silently truncated to 16-bit unsigned integer. - This silent truncation feature is deprecated, and will raise an - exception in future versions of Python. + .. versionchanged:: 3.10 + Raises :exc:`OverflowError` if *x* does not fit in a 16-bit unsigned + integer. .. function:: htonl(x) @@ -927,11 +925,9 @@ The :mod:`socket` module also offers various network-related services: where the host byte order is the same as network byte order, this is a no-op; otherwise, it performs a 2-byte swap operation. - .. deprecated:: 3.7 - In case *x* does not fit in 16-bit unsigned integer, but does fit in a - positive C int, it is silently truncated to 16-bit unsigned integer. - This silent truncation feature is deprecated, and will raise an - exception in future versions of Python. + .. versionchanged:: 3.10 + Raises :exc:`OverflowError` if *x* does not fit in a 16-bit unsigned + integer. .. function:: inet_aton(ip_string) |