We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea50689 commit 5796270Copy full SHA for 5796270
pep-0680.rst
@@ -289,8 +289,9 @@ be worked around in user code, or by using a third-party library.
289
290
The proposed API takes a binary file, while ``toml.load`` takes a text file and
291
``json.load`` takes either. Using a binary file allows us to ensure UTF-8 is
292
-the encoding used, and avoid incorrectly parsing single carriage returns as
293
-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
294
+single carriage returns as valid TOML due to universal newlines in text mode.
295
296
297
Type accepted as the first argument of ``tomllib.loads``
0 commit comments