Lines Matching refs:formatting
21 :ref:`string-formatting` section. Also, see the :mod:`re` module for
106 .. _new-string-formatting:
114 to do complex variable substitutions and value formatting via the
117 string formatting behaviors using the same implementation as the built-in
132 This function does the actual work of formatting. It is exposed as a
272 The *conversion* field causes a type coercion before formatting. Normally, the
273 job of formatting a value is done by the :meth:`__format__` method of the value
275 as a string, overriding its own definition of formatting. By converting the
276 value to a string before calling :meth:`__format__`, the normal formatting logic
289 precision and so on. Each value type can define its own "formatting
292 Most built-in types support a common formatting mini-language, which is
300 This allows the formatting of a value to be dynamically specified.
317 although some of the formatting options are only supported by the numeric types.
452 integer to a floating point number before formatting.
517 comparison with the old ``%``-formatting.
519 In most of the cases the syntax is similar to the old ``%``-formatting, with the
615 Using type-specific formatting::