Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
bpo-33601 Py_UTF8Mode is not documented#31480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -340,6 +340,16 @@ to 1 and ``-bb`` sets :c:data:`Py_BytesWarningFlag` to 2. | ||||||
| .. deprecated-removed:: 3.12 3.15 | ||||||
| .. c:var:: int Py_UTF8Mode | ||||||
| Enables the UTF-8 Mode. | ||||||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. You can add a link tohttps://docs.python.org/dev/library/os.html#python-utf-8-mode using | ||||||
| If set to 1, enable the UTF-8 Mode. | ||||||
| If set to 0, disable the UTF-8 Mode. | ||||||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I'm not sure that it works this way. preconfig_get_global_vars() ignores Py_UTF8Mode if Py_UTF8Mode should not be used: PyPreConfig.utf8_mode should be used instead. Today, it seems like the only purpose of Py_UTF8Mode is to explicitly enable the Python UTF-8 Mode with Py_UTF8Mode=1. | ||||||
| If set to -1, look for the :option:`-x` option and the :envvar:`PYTHONUTF8` environment variable. | ||||||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Please mention that the variable is now deprecated:#93943 Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Done in Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Suggested change
| ||||||
| .. deprecated-removed:: 3.12 3.15 | ||||||
| Initializing and finalizing the interpreter | ||||||
| =========================================== | ||||||
Uh oh!
There was an error while loading.Please reload this page.