New submission from HCT: 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:18: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 "<stdin>", line 1, in <module> ValueError: unmatched '{' in format >>> "0x{:0{{:d}}X}".format(0x0,16) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: Invalid format specifier >>> "0x{:0{:d}X}".format(0x0,16) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: unmatched '{' in format >>> "0x{:{:d}X}".format(0x0,16) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: unmatched '{' in format >>> "0x{:0{:d}X}".format(0x0,16) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: unmatched '{' in format >>> "0x{:0{:d}x}".format(0x0,16) Traceback (most recent call last): File "<stdin>", line 1, in <module> 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 ---------- components: Interpreter Core messages: 203954 nosy: hct priority: normal severity: normal status: open title: str.format sublevel format parsing broken in Python 3.3.3 versions: Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19729> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com