objstr: Implement kwargs support for str.format().
This commit is contained in:
@@ -60,6 +60,10 @@ test("{:@<6d}", -123)
|
||||
test("{:@=6d}", -123)
|
||||
test("{:06d}", -123)
|
||||
|
||||
print("{foo}/foo".format(foo="bar"))
|
||||
print("{}".format(123, foo="bar"))
|
||||
print("{}-{foo}".format(123, foo="bar"))
|
||||
|
||||
def test_fmt(conv, fill, alignment, sign, prefix, width, precision, type, arg):
|
||||
fmt = '{'
|
||||
if conv:
|
||||
|
||||
Reference in New Issue
Block a user