[issue30943] printf-style Bytes Formatting sometimes do not worked.

2017-07-17 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> out of date stage: -> resolved status: open -> closed superseder: -> can't interpolate byte string with \x00 before replacement identifier ___ Python tracker

[issue30943] printf-style Bytes Formatting sometimes do not worked.

2017-07-17 Thread Gareth Rees
Gareth Rees added the comment: This was already noted in issue29714 and fixed by Xiang Zhang in commit b76ad5121e2. -- ___ Python tracker ___

[issue30943] printf-style Bytes Formatting sometimes do not worked.

2017-07-17 Thread Gareth Rees
Gareth Rees added the comment: Test case minimization: Python 3.6.1 (default, Apr 24 2017, 06:18:27) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> b'a\x00%(a)s' % {b'a': b'a'}

[issue30943] printf-style Bytes Formatting sometimes do not worked.

2017-07-17 Thread zaazbb
New submission from zaazbb: # works. >>> b'\x00\x08%(amount)b'% {b'amount':b'1'} b'\x00\x081' # not work. >>> b'\x11\x00\x08%(amount)b'% {b'amount':b'1'} b'\x11\x00\x08%(amount)b' # not work. >>> amount=bytearray(b'0010') >>> posnum=bytearray(b'423') >>> date_ =b'170717' >>>