]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-132987: Support __index__() in the socket module (GH-133093)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 29 Apr 2025 16:27:07 +0000 (19:27 +0300)
committerGitHub <noreply@github.com>
Tue, 29 Apr 2025 16:27:07 +0000 (19:27 +0300)
commit4265854d96c907ce7bd5cde164ebb2b7e99b8f3f
tree2becf29bd980e911a2280d8dd1ff52bb8d8cc267
parentc33efa8735dfdb24011f5754f5e9e991c05f0587
gh-132987: Support __index__() in the socket module (GH-133093)

ntohl(), htonl(), if_indextoname(), getaddrinfo() now use __index__() if
available.

Also fix the Argument Clinic names for module-level functions (although
this does not affect the user).
Lib/test/test_socket.py
Modules/clinic/socketmodule.c.h
Modules/socketmodule.c