New submission from Matt Joiner <anacro...@gmail.com>: The Format Specification Mini-Language is missing type 'i', generally the same as 'd', and ubiquitous in the libraries from which the specification is derived. See the 'd,i' conversion specifier in C: http://linux.die.net/man/3/printf, and the Old String Formatting Operations: http://docs.python.org/dev/py3k/library/stdtypes.html#old-string-formatting-operations.
>>> '{:d}'.format(3) '3' >>> '{:i}'.format(3) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: Unknown format code 'i' for object of type 'int' ---------- components: Interpreter Core messages: 128934 nosy: anacrolix priority: normal severity: normal status: open title: Format Specification Mini-Language missing type 'i'? versions: Python 2.6, Python 2.7, Python 3.2, Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11264> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com