Issue 19729: [regression] str.format sublevel format parsing broken in Python 3.3.3 (original) (raw)

can't find a way around it... maybe a new regression test on this.

Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21🔞40) [MSC v.1600 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information.

"0x{:0{:d}X}".format(0x0,16) Traceback (most recent call last): File "", line 1, in ValueError: unmatched '{' in format "0x{:0{{:d}}X}".format(0x0,16) Traceback (most recent call last): File "", line 1, in ValueError: Invalid format specifier "0x{:0{:d}X}".format(0x0,16) Traceback (most recent call last): File "", line 1, in ValueError: unmatched '{' in format "0x{:{:d}X}".format(0x0,16) Traceback (most recent call last): File "", line 1, in ValueError: unmatched '{' in format "0x{:0{:d}X}".format(0x0,16) Traceback (most recent call last): File "", line 1, in ValueError: unmatched '{' in format "0x{:0{:d}x}".format(0x0,16) Traceback (most recent call last): File "", line 1, in ValueError: unmatched '{' in format

"{:0{}x}".format(0,16) '0000000000000000'

"0x{:0{:d}X}".format(0x0,16) and "{:0{}x}".format(0,16) work with Python 3.1, 3.2 and up to 3.3.2