Skip to content

gh-132734: Add new constants for Bluetooth sockets #132735

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Apr 19, 2025

Options names for use with :const:`BTPROTO_HCI`.
Availability and format of the option value depend on platform.

.. availability:: Linux and BSD
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
.. availability:: Linux and BSD
.. availability:: Linux, FreeBSD

Consistent with your first one, also we cannot officially guarantee *BSD support

Copy link
Member Author

Choose a reason for hiding this comment

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

It is not only FreeBSD. In several places I use BSD as a shortcut for FreeBSD, NetBSD and DragonFly BSD.

Note that different constants are available on different platforms.

Comment on lines +729 to +730
on NetBSD and DragonFly BSD.
Added :const:`!HCI_DATA_DIR` on FreeBSD, NetBSD and DragonFly BSD.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
on NetBSD and DragonFly BSD.
Added :const:`!HCI_DATA_DIR` on FreeBSD, NetBSD and DragonFly BSD.
for NetBSD and DragonFly BSD.
Added :const:`!HCI_DATA_DIR` for FreeBSD, NetBSD and DragonFly BSD.

I think for is more fitting here

Copy link
Member Author

Choose a reason for hiding this comment

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

Is it so? I thought that it is more common to write "on platform" than "for platform". There are many examples of the former, and not many of the latter.

@serhiy-storchaka serhiy-storchaka added docs Documentation in the Doc dir stdlib Python modules in the Lib dir labels Apr 19, 2025
@github-project-automation github-project-automation bot moved this to Todo in Docs PRs Apr 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting core review docs Documentation in the Doc dir stdlib Python modules in the Lib dir
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

2 participants