Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pep-0680.rst
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,9 @@ be worked around in user code, or by using a third-party library.

The proposed API takes a binary file, while ``toml.load`` takes a text file and
``json.load`` takes either. Using a binary file allows us to ensure UTF-8 is
the encoding used, and avoid incorrectly parsing single carriage returns as
valid TOML due to universal newlines in text mode.
the encoding used (ensuring correct parsing on platforms with other default
encodings, such as Windows), and avoid incorrectly parsing files containing
single carriage returns as valid TOML due to universal newlines in text mode.


Type accepted as the first argument of ``tomllib.loads``
Expand Down