File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -1606,13 +1606,14 @@ expression support in the :mod:`re` module).
1606
1606
that can be specified in format strings.
1607
1607
1608
1608
.. note ::
1609
- When formatting a number (:class: `int `, :class: `float `, :class: `float `
1610
- and subclasses) with the ``n `` type (ex: ``'{:n}'.format(1234) ``), the
1611
- function sets temporarily the ``LC_CTYPE `` locale to the ``LC_NUMERIC ``
1612
- locale to decode ``decimal_point `` and ``thousands_sep `` fields of
1613
- :c:func: `localeconv ` if they are non-ASCII or longer than 1 byte, and the
1614
- ``LC_NUMERIC `` locale is different than the ``LC_CTYPE `` locale. This
1615
- temporary change affects other threads.
1609
+ When formatting a number (:class: `int `, :class: `float `, :class: `complex `,
1610
+ :class: `decimal.Decimal ` and subclasses) with the ``n `` type
1611
+ (ex: ``'{:n}'.format(1234) ``), the function temporarily sets the
1612
+ ``LC_CTYPE `` locale to the ``LC_NUMERIC `` locale to decode
1613
+ ``decimal_point `` and ``thousands_sep `` fields of :c:func: `localeconv ` if
1614
+ they are non-ASCII or longer than 1 byte, and the ``LC_NUMERIC `` locale is
1615
+ different than the ``LC_CTYPE `` locale. This temporary change affects
1616
+ other threads.
1616
1617
1617
1618
.. versionchanged :: 3.7
1618
1619
When formatting a number with the ``n `` type, the function sets
You can’t perform that action at this time.
0 commit comments