From 7316f0922f54c412adbb2809a4a1ffc846653aff Mon Sep 17 00:00:00 2001 From: RUANG Date: Thu, 20 Feb 2025 22:17:22 +0800 Subject: [PATCH] More detailed sys.getdefaultencoding() documentation --- Doc/library/sys.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 855237e0984972..e61447e4bfc177 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -771,8 +771,8 @@ always available. Unless explicitly noted otherwise, all variables are read-only .. function:: getdefaultencoding() - Return the name of the current default string encoding used by the Unicode - implementation. + Return ``'utf-8'``. This is the name of the default string encoding, used + in methods like :meth:`str.encode`. .. function:: getdlopenflags()