-
Notifications
You must be signed in to change notification settings - Fork 330
Description
- bleak version: 0.12.0
- Python version: All
- Operating System: All
Bleak has several OS specific keyword, all of which are integrated into the regular **kwargs input to methods. The primary means of making users aware of what they can do to affect their current environment is through documentation. The documentation does provide this, but it is evidently not enough, given the amount of issues that e.g. asks why device="hci1 does not work in Windows to select another Adapter.
@dlech proposed two different ways of improving Bleak in this regards:
- Using a
win_,macos_, andlinux_prefix to keyword arguments that are os specific. - Using a
win={"x"=1. "y"=2, ...}style of OS specific grouping of parameters.
Both will render nicely with black and both relays the desired effect in my mind. @hbldh prefers the second way, but given that Bleak currently has few OS specific parameters it will be almost equal. Given that I, creator of Bleak, has much less use of it that most everyone else that will read this will have, I am more that ready to yield to public demand.
I vote 2, and everyone else that votes will have his or her's vote counted equally. At the first of September, I will start to implement the winning choice. IF someone beats me to the implementation of one of the choices, I will take that one.