FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-132099: Accept an integer as the address for BTPROTO_HCI on Linux by serhiy-storchaka · Pull Request #132525 · python/cpython · GitHub

/ cpython Public

gh-132099: Accept an integer as the address for BTPROTO_HCI on Linux - #132525

Merged
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:bluetooth-hci-accept-integer
Apr 16, 2025
Merged

gh-132099: Accept an integer as the address for BTPROTO_HCI on Linux#132525
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:bluetooth-hci-accept-integer

Conversation

serhiy-storchaka commented Apr 14, 2025
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Member

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.


📚 Documentation preview 📚: https://cpython-previews--132525.org.readthedocs.build/

…Linux

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.
Comment thread Doc/library/socket.rst Outdated
Comment thread Doc/library/socket.rst
- On Linux it accepts an integer ``device_id`` or a tuple
``(device_id, [channel])`` where ``device_id``
is specifies the number of the Bluetooth device,
and ``channel`` is an optional integer specifying the HCI channel

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality
Suggested change
and ``channel`` is an optional integer specifying the HCI channel
and ``channel`` is an optional integer specifying the HCI channel.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

No, it is not the end of the sentence.

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
serhiy-storchaka merged commit 8cb177d into python:main Apr 16, 2025
serhiy-storchaka deleted the bluetooth-hci-accept-integer branch April 16, 2025 10:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL