Message 86731 - Python tracker (original) (raw)
With your patch, I'm getting quite strange results when using alignment specifiers:
z = 123+4j format(z, '=20') '( 123+ 4j)' format(z, '^20') '( 123 +4 j)' format(z, '<20') '(123 +4 j)' len(format(z, '<20')) 43
Is this intentional? I was expecting to get strings of length 20, with the substring '(123+4j)' positioned either in the middle or on the left or right.