Message 150548 - Python tracker (original) (raw)

It used to be possible to specify Unicode fill characters in numeric formatting:

Python 3.3.0a0 (default:1dd6908df8f5, Jul 16 2011, 11:16:00) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information.

format(1234, "\u2007<7") '1234\u2007\u2007\u2007' [64682 refs]

Now it doesn't work:

Python 3.3.0a0 (default:65ac469d30e6, Jan 3 2012, 23:23:07) [GCC 4.4.3] on linux Type "help", "copyright", "credits" or "license" for more information.

format(1234, "\u2007<7") Traceback (most recent call last): File "", line 1, in ValueError: fill character too large