Description Usage Arguments Details Value Examples
Parses a format string into an internal representation
compatible with pformat()
.
1 | pformat_parse(format_string)
|
format_string |
the format string |
This function actually only parses a "layer" of the format string
markup. Recursive format strings depend on data, and thus can't be
completely parsed yet. In these cases, pformat_parse()
will still be
called by pformat()
with format specifications needing expanding.
an object of class pformat.compiled
containing an internal
representation of the format string.
1 2 | pformat_parse("{} {}")
pformat_parse("{1} {2}")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.