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:
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:
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:
-- Sent from my mobile device Envoyé de mon portable

On Mon, Jul 14, 2014 at 3:57 PM, Tim Tisdall <tisdall@gmail.com> wrote:
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:
-- Sent from my mobile device Envoyé de mon portable

On Mon, 14 Jul 2014 16:42:25 -0400, Terry Reedy <tjreedy@udel.edu> wrote:
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

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

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:
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:
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:
-- Sent from my mobile device Envoyé de mon portable

On Mon, Jul 14, 2014 at 3:57 PM, Tim Tisdall <tisdall@gmail.com> wrote:
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:
-- Sent from my mobile device Envoyé de mon portable

On Mon, 14 Jul 2014 16:42:25 -0400, Terry Reedy <tjreedy@udel.edu> wrote:
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

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