mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
gh-46236: Add docs for PyUnicode_GetDefaultEncoding() doc (GH-130335)
* Clarify sys.getdefaultencoding() documentation * Add missing documentation for PyUnicode_GetDefaultEncoding, the C equivalent of sys.getdefaultencoding
This commit is contained in:
parent
fc8d2cba54
commit
9f25c1f012
3 changed files with 14 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue