@@ -469,9 +469,10 @@ of a number respectively. It can be one of the following:
469469| | this option is not supported. |
470470+---------+----------------------------------------------------------+
471471
472- For a locale-aware separator, use the ``'n' `` presentation type instead. Note
473- that the locale setting for numeric values must first be set using the
474- :mod: `locale ` module, *e.g., * ``locale.setlocale(locale.LC_NUMERIC, 'en_US') ``.
472+ For a locale-aware separator, use the ``'n' `` presentation type instead.
473+ Note that the locale setting for numeric values must first be set using
474+ the :mod: `locale ` module, for example,
475+ ``locale.setlocale(locale.LC_NUMERIC, 'en_US') ``.
475476
476477.. versionchanged :: 3.1
477478 Added the ``',' `` option (see also :pep: `378 `).
@@ -519,8 +520,10 @@ The available integer presentation types are:
519520 +---------+----------------------------------------------------------+
520521 | ``'n' `` | Number. This is the same as ``'d' ``, except that it uses |
521522 | | the current locale setting to insert the appropriate |
522- | | digit group separators, provided that the locale has |
523- | | been properly set (see the :mod: `locale ` module). |
523+ | | digit group separators. Note that the default locale is |
524+ | | not the system locale, and therefore, you must set, at a |
525+ | | minimum, the ``LC_NUMERIC `` category (see the |
526+ | | :mod: `locale ` module for more information). |
524527 +---------+----------------------------------------------------------+
525528 | None | The same as ``'d' ``. |
526529 +---------+----------------------------------------------------------+
@@ -603,8 +606,10 @@ The available presentation types for :class:`float` and
603606 | ``'n' `` | Number. This is the same as ``'g' ``, except that it uses |
604607 | | the current locale setting to insert the appropriate |
605608 | | digit group separators for the integral part of a |
606- | | number, provided that the locale has been properly set |
607- | | (see the :mod: `locale ` module). |
609+ | | number. Note that the default locale is not the system |
610+ | | locale, and therefore, you must set, at a minimum, the |
611+ | | ``LC_NUMERIC `` category (see the :mod: `locale ` module |
612+ | | for more information). |
608613 +---------+----------------------------------------------------------+
609614 | ``'%' `` | Percentage. Multiplies the number by 100 and displays |
610615 | | in fixed (``'f' ``) format, followed by a percent sign. |
0 commit comments