Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbb0a857

Browse files
gh-91156: Document how TextIOWrapper interacts with UTF-8 mode (GH-132885)
Document how TextIOWrapper interacts with UTF-8 mode(cherry picked from commit245cd6c)Co-authored-by: Malcolm Smith <smith@chaquo.com>
1 parent8a05dbe commitbb0a857

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎Doc/library/io.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,8 @@ Text I/O
950950
:class:`TextIOBase`.
951951

952952
*encoding* gives the name of the encoding that the stream will be decoded or
953-
encoded with. It defaults to:func:`locale.getencoding`.
953+
encoded with. In:ref:`UTF-8 Mode<utf8-mode>`, this defaults to UTF-8.
954+
Otherwise, it defaults to:func:`locale.getencoding`.
954955
``encoding="locale"`` can be used to specify the current locale's encoding
955956
explicitly. See:ref:`io-text-encoding` for more information.
956957

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp