[issue36132] Python cannot access hci_channel field in sockaddr_hci

2019-02-27 Thread Andrew P. Lentvorski, Jr.
Andrew P. Lentvorski, Jr. added the comment: It's up to you how you folks want to deal with this, but classifying it as a "bug" for those versions in bugfix is likely acceptable. You already have to call bind with a tuple, so as long as it is *optional* to add an extra field to

[issue36132] Python cannot access hci_channel field in sockaddr_hci

2019-02-27 Thread Andrew P. Lentvorski, Jr.
New submission from Andrew P. Lentvorski, Jr. : On Linux, sockaddr_hci is: struct sockaddr_hci { sa_family_t hci_family; unsigned short hci_dev; unsigned short hci_channel; }; Unfortunately, it seems like python does not allow any way to initialize hci_channel

[issue20803] struct.pack_into writes 0x00 for pad bytes

2014-02-28 Thread Andrew P. Lentvorski, Jr.
New submission from Andrew P. Lentvorski, Jr.: This code did something unexpected to me: a = bytearray('1234') a bytearray(b'1234') struct.pack_into('xBxB', a, 0, 0x59, 0x5A) a bytearray(b'\x00Y\x00Z') The unexpected part was that the 'x' pad byte formatter actually *overwrote* the bytes

[issue20783] bytearray init fails when \x00 is present

2014-02-26 Thread Andrew P. Lentvorski, Jr.
New submission from Andrew P. Lentvorski, Jr.: The byte array init fails when \x00 is present This fails: ggRAM = bytearray(RAM_SIZE_BYTES, '\x00'*RAM_SIZE_BYTES) However, this works: ggRAM = bytearray(RAM_SIZE_BYTES) ggRAM[:] = '\x00'*RAM_SIZE_BYTES -- components: Interpreter Core

[issue20783] bytearray init fails when \x00 is present

2014-02-26 Thread Andrew P. Lentvorski, Jr.
Andrew P. Lentvorski, Jr. added the comment: Ayup, I are an idiot. Sorry. ggRAM = bytearray('\x00'*RAM_SIZE_BYTES) Works fine. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20783

[issue20783] bytearray init fails when \x00 is present

2014-02-26 Thread Andrew P. Lentvorski, Jr.
Changes by Andrew P. Lentvorski, Jr. bs...@allcaps.org: -- resolution: - invalid ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20783