]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-132099: Accept an integer as the address for BTPROTO_HCI on Linux (GH-132525)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 16 Apr 2025 10:02:51 +0000 (13:02 +0300)
committerGitHub <noreply@github.com>
Wed, 16 Apr 2025 10:02:51 +0000 (13:02 +0300)
commit8cb177d09be2bdda5df419ba5c3e323e1eaa8ede
treed51b49674e72ccf7954353da70769aa1cc24afa4
parent82f74eb2344cdb3197c726d1216e413ee61a30b3
gh-132099: Accept an integer as the address for BTPROTO_HCI on Linux (GH-132525)

Previously only an integer packed in a tuple was accepted, while
getsockname() could return a raw integer.
Now the result of getsockname() is always acceptable as an address.
Doc/library/socket.rst
Lib/test/test_socket.py
Misc/NEWS.d/next/Library/2025-04-14-20-38-43.gh-issue-132099.0l0LlK.rst [new file with mode: 0644]
Modules/socketmodule.c