io — Core tools for working with streams — Python 3.11.16 documentation

docs.python.org

Tin mới

os — Miscellaneous operating system interfaces

time — Time access and conversions

Python Module Index

3.11.16 Documentation

The Python Standard Library

Generic Operating System Services

bytes-like objects

Binary I/O (also called buffered I/O) expects bytes-like objects and produces bytes objects. No encoding, decoding, or newline translation is performed. This category of streams can be used for all kinds of non-text data

socket.socket.makefile()

Binary I/O (also called buffered I/O) expects bytes-like objects and produces bytes objects. No encoding, decoding, or newline translation is performed. This category of streams can be used for all kinds of non-text data

locale.getencoding()

The default encoding of TextIOWrapper and open() is locale-specific (locale.getencoding()).

-X warn_default_encoding

New in version 3.10: See PEP 597 for more details.

Opt-in EncodingWarning¶

New in version 3.10: See PEP 597 for more details.

Opt-in EncodingWarning¶

New in version 3.10: See PEP 597 for more details.

PyFile_SetOpenCodeHook()

Opens the provided file with mode 'rb'. This function should be used when the intent is to treat the contents as executable code.

sys.flags.warn_default_encoding

This is a helper function for callables that use open() or TextIOWrapper and have an encoding=None parameter.

codecs.register_error()

A buffered text stream providing higher-level access to a BufferedIOBase buffered binary stream. It inherits from TextIOBase.

signal: Set handlers for asynchronous events.

Binary buffered objects (instances of BufferedReader, BufferedWriter, BufferedRandom and BufferedRWPair) are not reentrant. While reentrant calls will not happen in normal situations, they can arise from doing I/O in a s