]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-132099: Harmonize Bluetooth address handling (GH-132486)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 14 Apr 2025 05:58:56 +0000 (08:58 +0300)
committerGitHub <noreply@github.com>
Mon, 14 Apr 2025 05:58:56 +0000 (08:58 +0300)
commit1fc1df8dcc7a853b0649bc8df37cd07cbd2b6230
treef27097b0e4d6f0c08d268f0cc85cb0a1b792f358
parentccad61e35d240972d14f993507566706fbf419f1
gh-132099: Harmonize Bluetooth address handling (GH-132486)

Now all protocols always accept the Bluetooth address as string and
getsockname() always returns the Bluetooth address as string.

* BTPROTO_SCO now accepts not only bytes, but str.
* BTPROTO_SCO now checks address for embedded null.
* On *BSD, BTPROTO_HCI now accepts str instead of bytes.
* On FreeBSD, getsockname() for BTPROTO_HCI now returns str instead of bytes.
* On NetBSD and DragonFly BDS, BTPROTO_HCI now checks address for embedded null.
Doc/library/socket.rst
Lib/test/test_socket.py
Modules/socketmodule.c