Skip to content

Latest commit

 

History

History
9 lines (8 loc) · 553 Bytes

2017-10-30-15-55-32.bpo-31900.-S9xc4.rst

File metadata and controls

9 lines (8 loc) · 553 Bytes

The :func:`locale.localeconv` function now sets temporarily the LC_CTYPE locale to the LC_NUMERIC locale to decode decimal_point and thousands_sep byte strings if they are non-ASCII or longer than 1 byte, and the LC_NUMERIC locale is different than the LC_CTYPE locale. This temporary change affects other threads.

Same change for the :meth:`str.format` method when formatting a number (:class:`int`, :class:`float`, :class:`complex`, :class:`decimal.Decimal` and subclasses) with the n type (ex: '{:n}'.format(1234)).