[issue35102] Struct pack()

2018-10-29 Thread Mark Dickinson
Mark Dickinson added the comment: The result is correct. Note that the first character is "0", which is chr(48). >>> '0' == '\x30' True >>> '0\x11\x00\x00' == '\x30\x11\x00\x00' True -- nosy: +mark.dickinson resolution: -> not a bug stage: -> resolved status: open -> closed

[issue35102] Struct pack()

2018-10-29 Thread jimmy
New submission from jimmy : The result of variable "a" should be b'30\x11\x00\x00' not b'0\x11\x00\x00' . >>> import struct >>> a = struct.pack(">> print(a) b'0\x11\x00\x00' >>> -- messages: 328794 nosy: jimmy priority: normal severity: normal status: open title: Struct pack()