I'm trying to find help for string formatting in Python. I have tried the following:
>>> help(''.format)
But the help I get is:
Help on built-in function format:
format(...)
S.format(*args, **kwargs) -> string
Return a formatted version of S, using substitutions from args and kwargs.
The substitutions are identified by braces ('{' and '}').
(END)
What I'm looking for is the equivalent of the online string format specification. Is this information available through the help()
command? If so, how can I access it?