Bluetooth 4.0 support in "socket" module

I was interested in providing patches for the socket module to add Bluetooth 4.0 support. I couldn't find any details on how to provide contributions to the Python project, though... Is there some online documentation with guidelines on how to contribute? Should I just provide a patch to this mailing list? Also, is there a method to test changes against all the different *nix variations? Is Bluez the standard across the different *nix variations? -Tim

On Mon, Jul 14, 2014 at 8:57 AM, Tim Tisdall <tisdall@gmail.com> wrote:
Is there some online documentation with guidelines on how to contribute?

On Mon, Jul 14, 2014 at 10:30 AM, Skip Montanaro <skip@pobox.com> wrote:
On Mon, Jul 14, 2014 at 8:57 AM, Tim Tisdall <tisdall@gmail.com> wrote:
Is there some online documentation with guidelines on how to contribute?
This response is unacceptable. Tim: check out https://docs.python.org/devguide/ and perhaps look at the core-mentorship[0] mailing list while coming up with your first contributions. It's a good first step to getting some guidance on the process and getting some eyes on your early patches. [0] https://mail.python.org/mailman/listinfo/core-mentorship/

Naw, I'd accept that response. I think I searched on Friday, but forgot about finding that. :) There's enough traffic on a mailing list without useless noise. Thanks for all the responses. On Mon, Jul 14, 2014 at 11:53 AM, Brian Curtin <brian@python.org> wrote:
On Mon, Jul 14, 2014 at 10:30 AM, Skip Montanaro <skip@pobox.com> wrote:
On Mon, Jul 14, 2014 at 8:57 AM, Tim Tisdall <tisdall@gmail.com> wrote:
Is there some online documentation with guidelines on how to contribute?
This response is unacceptable.
Tim: check out https://docs.python.org/devguide/ and perhaps look at the core-mentorship[0] mailing list while coming up with your first contributions. It's a good first step to getting some guidance on the process and getting some eyes on your early patches.
[0] https://mail.python.org/mailman/listinfo/core-mentorship/

On Mon, Jul 14, 2014 at 10:53 AM, Brian Curtin <brian@python.org> wrote:
Is there some online documentation with guidelines on how to contribute?
This response is unacceptable.
Tim and I already discussed this offline. I admitted to being in a bit of a snarky mood today, and he seems to have accepted my post in good natured fashion. I should have at least added a smiley to my post. I will refrain from attempts at unadorned levity in the future. As penance, Tim or Brian, if you are are in or near Chicago, look me up. I'd be happy to buy y'all a beer. Skip

Would http://lmbtfy.com/?q=contribute+to+python# be more or less acceptable? -- H On 14 July 2014 09:09, Skip Montanaro <skip@pobox.com> wrote:
On Mon, Jul 14, 2014 at 10:53 AM, Brian Curtin <brian@python.org> wrote:
Is there some online documentation with guidelines on how to contribute?
This response is unacceptable.
Tim and I already discussed this offline. I admitted to being in a bit of a snarky mood today, and he seems to have accepted my post in good natured fashion. I should have at least added a smiley to my post. I will refrain from attempts at unadorned levity in the future.
As penance, Tim or Brian, if you are are in or near Chicago, look me up. I'd be happy to buy y'all a beer.
Skip _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/hasan.diwan%40gmail.com
-- Sent from my mobile device Envoyé de mon portable

On Mon, Jul 14, 2014 at 3:57 PM, Tim Tisdall <tisdall@gmail.com> wrote:
I was interested in providing patches for the socket module to add Bluetooth 4.0 support. I couldn't find any details on how to provide contributions to the Python project, though... Is there some online documentation with guidelines on how to contribute? Should I just provide a patch to this mailing list?
Also, is there a method to test changes against all the different *nix variations? Is Bluez the standard across the different *nix variations?
-Tim
_______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/g.rodola%40gmail.com
Hello there, you can take a look at: https://docs.python.org/devguide/#contributing Patches must be submitted on the Python bug tracker: http://bugs.python.org/ -- Giampaolo - http://grodola.blogspot.com

On 7/14/2014 9:57 AM, Tim Tisdall wrote: 2 questions not answered yet.
Also, is there a method to test changes against all the different *nix variations?
We have a set of buildbots. https://www.python.org/dev/buildbot/
Is Bluez the standard across the different *nix variations?
No idea. -- Terry Jan Reedy

Tim, Are you aware of https://code.google.com/p/pybluez/ ? -- H On 14 July 2014 13:42, Terry Reedy <tjreedy@udel.edu> wrote:
On 7/14/2014 9:57 AM, Tim Tisdall wrote:
2 questions not answered yet.
Also, is there a method to test changes against all the different *nix
variations?
We have a set of buildbots. https://www.python.org/dev/buildbot/
Is Bluez the standard across the different *nix variations?
No idea.
-- Terry Jan Reedy
_______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/ hasan.diwan%40gmail.com
-- Sent from my mobile device Envoyé de mon portable

Quite aware. I'm pretty sure it has no 4.x LE capabilities. Last I checked it seemed like a dead project, but there seems to be some activity there now. On Jul 14, 2014 4:47 PM, "Hasan Diwan" <hasan.diwan@gmail.com> wrote:
Tim, Are you aware of https://code.google.com/p/pybluez/ ? -- H
On 14 July 2014 13:42, Terry Reedy <tjreedy@udel.edu> wrote:
On 7/14/2014 9:57 AM, Tim Tisdall wrote:
2 questions not answered yet.
Also, is there a method to test changes against all the different *nix
variations?
We have a set of buildbots. https://www.python.org/dev/buildbot/
Is Bluez the standard across the different *nix variations?
No idea.
-- Terry Jan Reedy
_______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/ hasan.diwan%40gmail.com
-- Sent from my mobile device Envoyé de mon portable
_______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/tisdall%40gmail.com

On Mon, 14 Jul 2014 16:42:25 -0400, Terry Reedy <tjreedy@udel.edu> wrote:
On 7/14/2014 9:57 AM, Tim Tisdall wrote:
2 questions not answered yet.
Also, is there a method to test changes against all the different *nix variations?
We have a set of buildbots. https://www.python.org/dev/buildbot/
Is Bluez the standard across the different *nix variations?
No idea.
It would be really nice to answer that and the related testing questions. The socket module has bluetooth support, but there are no tests. An effort to write some was started at the Bloomberg sprint last month, but nothing has been posted to the issue yet: http://bugs.python.org/issue7687 Is Bluetooth 4.0 something different from what the socket module already has? --David

The major change is to the Bluetooth address struct. It now has an added value for the distinction between "public" and "random" 4.x addresses. Also some added constants to open LE connections. On Jul 14, 2014 5:32 PM, "R. David Murray" <rdmurray@bitdance.com> wrote:
On Mon, 14 Jul 2014 16:42:25 -0400, Terry Reedy <tjreedy@udel.edu> wrote:
On 7/14/2014 9:57 AM, Tim Tisdall wrote:
2 questions not answered yet.
Also, is there a method to test changes against all the different *nix variations?
We have a set of buildbots. https://www.python.org/dev/buildbot/
Is Bluez the standard across the different *nix variations?
No idea.
It would be really nice to answer that and the related testing questions. The socket module has bluetooth support, but there are no tests. An effort to write some was started at the Bloomberg sprint last month, but nothing has been posted to the issue yet:
http://bugs.python.org/issue7687
Is Bluetooth 4.0 something different from what the socket module already has?
--David _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/tisdall%40gmail.com

Am 14.07.14 15:57, schrieb Tim Tisdall:
Also, is there a method to test changes against all the different *nix variations? Is Bluez the standard across the different *nix variations?
Perhaps not the answer you expected, but: Python uses autoconf for feature testing. You can be certain that the API *will* vary across system vendors. For example, FreeBSD apparently uses ng_hci(4): http://www.unix.com/man-page/freebsd/4/ng_hci/ If you add features, all you need to make sure that Python continues to compile when the platform feature is not present. People using the other systems are then free to contribute support for their platforms. Regards, Martin
participants (8)
-
"Martin v. Löwis"
-
Brian Curtin
-
Giampaolo Rodola'
-
Hasan Diwan
-
R. David Murray
-
Skip Montanaro
-
Terry Reedy
-
Tim Tisdall