cpython/Misc/NEWS.d/next/Core and Builtins/2018-08-28-17-48-40.bpo-344...

6 lines
336 B
ReStructuredText

Python now gets the locale encoding with C code to initialize the encoding
of standard streams like sys.stdout. Moreover, the encoding is now
initialized to the Python codec name to get a normalized encoding name and
to ensure that the codec is loaded. The change avoids importing _bootlocale
and _locale modules at startup by default.