cpython/Python
Victor Stinner 9e4994d410
bpo-34485: Enhance init_sys_streams() (GH-8978)
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.

When the PYTHONIOENCODING environment variable only contains an encoding,
the error handler is now is now set explicitly to "strict".

Rename also get_default_standard_stream_error_handler() to
get_stdio_errors().

Reduce the buffer to format the "cpXXX" string (Windows locale encoding).
2018-08-28 23:26:33 +02:00
..
clinic Add docstrings to public methods from context.c (GH-8531) 2018-07-30 16:15:44 +01:00
Python-ast.c bpo-33677: Fix signatures of tp_clear handlers for AST and deque. (GH-7196) 2018-05-31 07:34:34 +03:00
README
_warnings.c bpo-34301: Add _PyInterpreterState_Get() helper function (GH-8592) 2018-08-03 15:33:52 +02:00
asdl.c replace PY_SIZE_MAX with SIZE_MAX 2016-09-07 09:26:18 -07:00
ast.c bpo-34457: Python/ast.c: Add missing NULL check to alias_for_import_name(). (GH-8852) 2018-08-22 07:55:16 +03:00
ast_opt.c bpo-33691: Add _PyAST_GetDocString(). (GH-7236) 2018-05-30 10:56:16 +03:00
ast_unparse.c bpo-33475: Fix and improve converting annotations to strings. (GH-6774) 2018-05-16 23:17:48 -04:00
bltinmodule.c closes bpo-34474: Python/bltinmodule.c: Add missing NULL check in builtin_sum_impl() (GH-8872) 2018-08-23 21:27:52 -07:00
bootstrap_hash.c bpo-34170: Add Python/coreconfig.c for _PyCoreConfig (GH-8607) 2018-08-01 17:56:14 +02:00
ceval.c bpo-34301: Add _PyInterpreterState_Get() helper function (GH-8592) 2018-08-03 15:33:52 +02:00
ceval_gil.h bpo-30860: Consolidate stateful runtime globals. (#3397) 2017-09-07 23:51:28 -06:00
codecs.c bpo-34301: Add _PyInterpreterState_Get() helper function (GH-8592) 2018-08-03 15:33:52 +02:00
compile.c bpo-33691: Add _PyAST_GetDocString(). (GH-7236) 2018-05-30 10:56:16 +03:00
condvar.h bpo-30860: Consolidate stateful runtime globals. (#3397) 2017-09-07 23:51:28 -06:00
context.c Add docstrings to public methods from context.c (GH-8531) 2018-07-30 16:15:44 +01:00
coreconfig.c bpo-34403: On HP-UX, force ASCII for C locale (GH-8969) 2018-08-28 17:27:36 +02:00
dtoa.c bpo-30923: Silence fall-through warnings included in -Wextra since gcc-7.0. (#3157) 2017-08-21 13:09:59 +02:00
dup2.c bpo-32150: Expand tabs to spaces in C files. (#4583) 2017-11-28 17:56:10 +02:00
dynamic_annotations.c bpo-32241: Add the const qualifire to declarations of umodifiable strings. (#4748) 2017-12-12 13:55:04 +02:00
dynload_aix.c
dynload_dl.c
dynload_hpux.c
dynload_shlib.c bpo-34301: Add _PyInterpreterState_Get() helper function (GH-8592) 2018-08-03 15:33:52 +02:00
dynload_stub.c
dynload_win.c [security] bpo-13617: Reject embedded null characters in wchar* strings. (#2302) 2017-06-28 08:30:06 +03:00
errors.c bpo-34503: Fix refleak in PyErr_SetObject() (GH-8934) 2018-08-27 00:31:25 +08:00
fileutils.c bpo-34403: On HP-UX, force ASCII for C locale (GH-8969) 2018-08-28 17:27:36 +02:00
formatter_unicode.c bpo-31900: Fix localeconv() encoding for LC_NUMERIC (#4174) 2018-01-15 15:58:02 +01:00
frozen.c Issue #26647: Python interpreter now uses 16-bit wordcode instead of bytecode. 2016-05-24 09:15:14 +03:00
frozenmain.c bpo-34170: Add _PyCoreConfig._frozen parameter (GH-8591) 2018-08-01 02:13:04 +02:00
future.c bpo-33691: Add _PyAST_GetDocString(). (GH-7236) 2018-05-30 10:56:16 +03:00
getargs.c bpo-34127: Fix grammar in error message with respect to argument count (GH-8395) 2018-07-22 13:13:26 -07:00
getcompiler.c closes bpo-31696: don't mention GCC in sys.version when building with clang (#3891) 2017-10-05 21:15:14 -07:00
getcopyright.c advance copyright years to 2018 (#5094) 2018-01-04 22:34:19 -08:00
getopt.c move pygetopt.h to internal (closes bpo-32264) (#4830) 2017-12-14 23:48:12 -08:00
getplatform.c bpo-32150: Expand tabs to spaces in C files. (#4583) 2017-11-28 17:56:10 +02:00
getversion.c bpo-32150: Expand tabs to spaces in C files. (#4583) 2017-11-28 17:56:10 +02:00
graminit.c bpo-30406: Make async and await proper keywords (#1669) 2017-10-05 23:24:46 -04:00
hamt.c Fix GCC warning in Python/hamt.c (GH-7618) 2018-07-06 17:50:38 +09:00
import.c bpo-34301: Add _PyInterpreterState_Get() helper function (GH-8592) 2018-08-03 15:33:52 +02:00
importdl.c bpo-31315: Fix an assertion failure in imp.create_dynamic(), when spec.name is not a string. (#3257) 2017-09-19 14:39:47 +03:00
importdl.h
importlib.h bpo-32911: Revert bpo-29463. (GH-7121) (GH-7197) 2018-05-29 12:04:55 +03:00
importlib_external.h bpo-33499: Add PYTHONPYCACHEPREFIX env var for alt bytecode cache location. (GH-6834) 2018-06-16 14:40:56 +10:00
makeopcodetargets.py
marshal.c bpo-33720: Refactor marshalling/unmarshalling floats. (GH-8071) 2018-07-24 10:55:47 +03:00
modsupport.c bpo-29852: Argument Clinic Py_ssize_t converter now supports None (#716) 2017-03-30 09:15:31 +03:00
mysnprintf.c
mystrtoul.c bpo-31370: Remove support for threads-less builds (#3385) 2017-09-07 18:56:24 +02:00
opcode_targets.h bpo-33041: Rework compiling an "async for" loop. (#6142) 2018-03-23 14:34:35 +02:00
pathconfig.c bpo-34170: Add _Py_InitializeFromConfig() (GH-8454) 2018-07-25 02:49:17 +02:00
peephole.c bpo-17611. Move unwinding of stack for "pseudo exceptions" from interpreter to compiler. (GH-5006) 2018-02-22 23:33:30 +02:00
pyarena.c
pyctype.c
pyfpe.c bpo-29137: Remove fpectl module (#4789) 2018-01-05 23:15:34 -08:00
pyhash.c bpo-31849: Fix warning in pyhash.c (GH-6799) 2018-06-04 19:57:08 +09:00
pylifecycle.c bpo-34485: Enhance init_sys_streams() (GH-8978) 2018-08-28 23:26:33 +02:00
pymath.c
pystate.c bpo-34301: Add _PyInterpreterState_Get() helper function (GH-8592) 2018-08-03 15:33:52 +02:00
pystrcmp.c
pystrhex.c bpo-32150: Expand tabs to spaces in C files. (#4583) 2017-11-28 17:56:10 +02:00
pystrtod.c bpo-34087: Fix buffer overflow in int(s) and similar functions (GH-8274) 2018-07-14 12:06:43 +09:00
pythonrun.c bpo-34301: Add _PyInterpreterState_Get() helper function (GH-8592) 2018-08-03 15:33:52 +02:00
pytime.c Fix miscellaneous typos (#4275) 2017-11-05 15:37:50 +02:00
strdup.c bpo-32150: Expand tabs to spaces in C files. (#4583) 2017-11-28 17:56:10 +02:00
structmember.c Added the const qualifier to char* variables that refer to readonly internal 2016-11-20 10:16:47 +02:00
symtable.c bpo-32836: Remove obsolete code from symtable pass (GH-5680) 2018-02-27 07:31:20 +10:00
sysmodule.c bpo-34301: Add _PyInterpreterState_Get() helper function (GH-8592) 2018-08-03 15:33:52 +02:00
thread.c bpo-34301: Add _PyInterpreterState_Get() helper function (GH-8592) 2018-08-03 15:33:52 +02:00
thread_nt.h Fix typo in thread_nt.h code comment (GH-5211) 2018-01-17 15:21:01 -08:00
thread_pthread.h bpo-32593: Drop FreeBSD 9 and older support (#5232) 2018-01-22 18:32:50 +01:00
traceback.c bpo-33012: Fix invalid function cast warnings with gcc 8 for METH_NOARGS. (GH-6030) 2018-04-29 21:59:33 +03:00
wordcode_helpers.h bpo-31338 (#3374) 2017-09-14 18:13:16 -07:00

README

Miscellaneous source files for the main Python shared library