@@ -42,7 +42,7 @@ The :mod:`locale` module defines the following exception and functions:
4242 If *locale * is a pair, it is converted to a locale name using
4343 the locale aliasing engine.
4444 The language code has the same format as a :ref: `locale name <locale_name >`,
45- but without encoding and `` @ ``-modifier .
45+ but without encoding.
4646 The language code and encoding can be ``None ``.
4747
4848 If *locale * is omitted or ``None ``, the current setting for *category * is
@@ -58,6 +58,9 @@ The :mod:`locale` module defines the following exception and functions:
5858 specified in the :envvar: `LANG ` environment variable). If the locale is not
5959 changed thereafter, using multithreading should not cause problems.
6060
61+ .. verssionchanged :: next
62+ Support language codes with ``@ ``-modifiers.
63+
6164
6265.. function :: localeconv()
6366
@@ -366,11 +369,14 @@ The :mod:`locale` module defines the following exception and functions:
366369 values except :const: `LC_ALL `. It defaults to :const: `LC_CTYPE `.
367370
368371 The language code has the same format as a :ref: `locale name <locale_name >`,
369- but without encoding and `` @ ``-modifier .
372+ but without encoding.
370373 The language code and encoding may be ``None `` if their values cannot be
371374 determined.
372375 The "C" locale is represented as ``(None, None) ``.
373376
377+ .. verssionchanged :: next
378+ The language code can now contain a ``@ ``-modifier.
379+
374380
375381.. function :: getpreferredencoding(do_setlocale=True)
376382
0 commit comments