BPO | [33601](https://bugs.python.org/issue33601) --- | :--- Nosy | @ncoghlan, @vstinner, @serhiy-storchaka, @Mariatta, @Vidhyavinu PRs | python/cpython#7143python/cpython#31480 Files | [init.html](https://bugs.python.org/file50630/init.html "Uploaded as text/plain at 2022-02-18.21:05:33 by @Vidhyavinu"): c-api/init.html *Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.* Show more details GitHub fields: ```python assignee = 'https://github.com/Mariatta' closed_at = None created_at = labels = ['easy', '3.9', '3.10', '3.11', 'type-feature', 'docs'] title = '[doc] Py_UTF8Mode is not documented' updated_at = user = 'https://github.com/serhiy-storchaka' ``` bugs.python.org fields: ```python activity = actor = 'vidhya' assignee = 'Mariatta' closed = False closed_date = None closer = None components = ['Documentation'] creation = creator = 'serhiy.storchaka' dependencies = [] files = ['50630'] hgrepos = [] issue_num = 33601 keywords = ['patch', 'easy'] message_count = 7.0 messages = ['317286', '317292', '317294', '338920', '413511', '413648', '413674'] nosy_count = 6.0 nosy_names = ['ncoghlan', 'vstinner', 'docs@python', 'serhiy.storchaka', 'Mariatta', 'vidhya'] pr_nums = ['7143', '31480'] priority = 'normal' resolution = None stage = 'patch review' status = 'open' superseder = None type = 'enhancement' url = 'https://bugs.python.org/issue33601' versions = ['Python 3.9', 'Python 3.10', 'Python 3.11'] ``` ### Linked PRs * gh-106272 * gh-106274 * gh-129024
Activity
serhiy-storchaka commentedon May 22, 2018
Py_UTF8Mode was added to the limited API in 3.7, but it is not documented anywhere.
vstinner commentedon May 22, 2018
I wasn't sure if I should document it, but after talking with Serhiy on IRC, I now agree that the new variable should be documented.
It should be documented at:
https://docs.python.org/dev/c-api/init.html#global-configuration-variables
[-]Py_UTF8Mode is not documented[/-][+][EASY DOC] Py_UTF8Mode is not documented[/+]serhiy-storchaka commentedon May 22, 2018
If there are reasons of including it in the limited API, it should be documented.
vstinner commentedon Mar 26, 2019
PR 7143 has been closed. So is there another candidate to write the doc?
18 remaining items
[3.12] gh-77782: Deprecate Py_HasFileSystemDefaultEncoding (GH-106272) (
hugovk commentedon Jan 11, 2024
Triage: is there more to do here or can we close this issue?
pythongh-77782: Postpone Py_VerboseFlag removal to Python 3.15
pythongh-77782: Postpone Py_VerboseFlag removal to Python 3.15
gh-77782: Postpone Py_VerboseFlag removal to Python 3.15 (#129024)
pythongh-77782: Postpone Py_VerboseFlag removal to Python 3.15 (pytho…
StanFromIreland commentedon Jul 29, 2025
@hugovk
Py_UTF8Modeis not documented, but it is removed in 3.15, so I see no reason to document it.