Format braces, bracket, and parentheses


These are just some extreme special cases. Most people won't need to know about them.


examples/format/format_braces.py
print("{{{}}}".format(42))   # {42}

print("{{ {} }}".format(42))   # { 42 }

print("[{}] ({})".format(42, 42))   # [42] (42)

print("%{}".format(42))   # %42

Anything that is not in curly braces will be formatted as they are.