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
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
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
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
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
Changes by Andrew P. Lentvorski, Jr. bs...@allcaps.org:
--
resolution: - invalid
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20783