cpython/Doc/c-api
Inada Naoki 4827483f47
bpo-43510: Implement PEP 597 opt-in EncodingWarning. (GH-19481)
See [PEP 597](https://www.python.org/dev/peps/pep-0597/).

* Add `-X warn_default_encoding` and `PYTHONWARNDEFAULTENCODING`.
* Add EncodingWarning
* Add io.text_encoding()
* open(), TextIOWrapper() emits EncodingWarning when encoding is omitted and warn_default_encoding is enabled.
* _pyio.TextIOWrapper() uses UTF-8 as fallback default encoding used when failed to import locale module. (used during building Python)
* bz2, configparser, gzip, lzma, pathlib, tempfile modules use io.text_encoding().
* What's new entry
2021-03-29 12:28:14 +09:00
..
abstract.rst
allocation.rst
apiabiversion.rst
arg.rst bpo-36346: Document removal schedule of deprecate APIs (GH-20879) 2021-02-23 08:06:51 +09:00
bool.rst
buffer.rst
bytearray.rst
bytes.rst
call.rst
capsule.rst
cell.rst
code.rst
codec.rst
complex.rst
concrete.rst bpo-43422: Revert _decimal C API addition (GH-24960) 2021-03-21 09:27:54 -07:00
contextvars.rst
conversion.rst closes bpo-43266: Improve array formatting. (GH-24573) 2021-02-19 09:32:31 -06:00
coro.rst
datetime.rst
descriptor.rst bpo-40170: Convert PyDescr_IsData() to static inline function (GH-24535) 2021-02-16 08:50:00 +01:00
dict.rst
exceptions.rst bpo-43356: Allow passing a signal number to interrupt_main() (GH-24755) 2021-03-11 23:35:45 +01:00
file.rst
float.rst
function.rst bpo-42990: Refactor _PyFrame_New_NoTrack() (GH-24566) 2021-02-18 19:20:16 +01:00
gcsupport.rst
gen.rst
import.rst
index.rst
init.rst
init_config.rst bpo-43510: Implement PEP 597 opt-in EncodingWarning. (GH-19481) 2021-03-29 12:28:14 +09:00
intro.rst
iter.rst bpo-31861: Complete the C-API docs for PyObject_GetAiter and PyAiter_Check (GH-25004) 2021-03-23 23:57:03 +00:00
iterator.rst
list.rst
long.rst
mapping.rst
marshal.rst
memory.rst bpo-3329: Fix typo in PyObjectArenaAllocator doc (GH-24795) 2021-03-09 12:16:42 +01:00
memoryview.rst
method.rst
module.rst
none.rst
number.rst
object.rst bpo-31861: Complete the C-API docs for PyObject_GetAiter and PyAiter_Check (GH-25004) 2021-03-23 23:57:03 +00:00
objimpl.rst
refcounting.rst
reflection.rst
sequence.rst
set.rst bpo-43277: Add PySet_CheckExact to the C-API (GH-24598) 2021-02-20 18:03:08 +00:00
slice.rst
stable.rst
structures.rst
sys.rst
tuple.rst
type.rst
typeobj.rst
unicode.rst bpo-43506: Doc: Update removal schedule for Py_UNICODE encoder APIs (GH-24885) 2021-03-16 13:24:27 +09:00
utilities.rst
veryhigh.rst
weakref.rst