mirror of
https://github.com/python/cpython.git
synced 2025-11-19 10:46:17 +00:00
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 |
||
|---|---|---|
| .. | ||
| _iomodule.c.h | ||
| bufferedio.c.h | ||
| bytesio.c.h | ||
| fileio.c.h | ||
| iobase.c.h | ||
| stringio.c.h | ||
| textio.c.h | ||
| winconsoleio.c.h | ||