diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2013-10-17 12:35:35 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2013-10-17 12:35:35 (GMT) |
commit | 7d270ee05d7553aea1052cf7957358888ac8ad85 (patch) | |
tree | 4b3252363aac65d60104ef68dbc2d5174c0d8a91 /Doc/whatsnew/3.4.rst | |
parent | 26f92680da305a4f3007c47e11cced893991ec70 (diff) | |
download | cpython-7d270ee05d7553aea1052cf7957358888ac8ad85.zip cpython-7d270ee05d7553aea1052cf7957358888ac8ad85.tar.gz cpython-7d270ee05d7553aea1052cf7957358888ac8ad85.tar.bz2 |
Issue #16129: Add `Py_SetStandardStreamEncoding`
This new pre-initialization API allows embedding
applications like Blender to force a particular
encoding and error handler for the standard IO streams.
Also refactors Modules/_testembed.c to let us start
testing multiple embedding scenarios.
(Initial patch by Bastien Montagne)
Diffstat (limited to 'Doc/whatsnew/3.4.rst')
-rw-r--r-- | Doc/whatsnew/3.4.rst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst index 3610dbf..befa00d 100644 --- a/Doc/whatsnew/3.4.rst +++ b/Doc/whatsnew/3.4.rst @@ -564,7 +564,10 @@ Build and C API Changes Changes to Python's build process and to the C API include: -* None yet. +* The new :c:func:`Py_SetStandardStreamEncoding` pre-initialization API + allows applications embedding the CPython interpreter to reliably force + a particular encoding and error handler for the standard streams + (Contributed by Bastien Montagne and Nick Coghlan in :issue:`16129`) Deprecated |