GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — bpo-33601 Py_UTF8Mode is not documented by Vidhyavinu · Pull Request #31480 · python/cpython Conversation
|
|
I only see checks for if A |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I created #93103 to deprecate Global Configuration Variables like |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
How about adding a link in C API Stability page to init.rst?
Also, adding
Py_UTF8Mode=1 enables UTF-8 mode. However the PYTHONUTF8 environment variable is ignored (even if use_environment=1).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| If set to 1, enable the UTF-8 Mode. | ||
| If set to 0, disable the UTF-8 Mode. | ||
| If set to -1, look for the :option:`-x` option and the :envvar:`PYTHONUTF8` environment variable. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Please mention that the variable is now deprecated: #93943
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done in 3ec424d (#31480) when resolving the conflict.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| If set to 1, enable the UTF-8 Mode. | ||
| If set to 0, disable the UTF-8 Mode. | ||
| If set to -1, look for the :option:`-x` option and the :envvar:`PYTHONUTF8` environment variable. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| If set to -1, look for the :option:`-x` option and the :envvar:`PYTHONUTF8` environment variable. | |
| If set to -1, look for the :option:`-x utf8 <-x>` command line option and the :envvar:`PYTHONUTF8` environment variable. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| Enables the UTF-8 Mode. | ||
|
|
||
| If set to 1, enable the UTF-8 Mode. | ||
| If set to 0, disable the UTF-8 Mode. |
There was a problem hiding this comment.
The 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 <= 0.
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.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| .. c:var:: int Py_UTF8Mode | ||
|
|
||
| Enables the UTF-8 Mode. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
You can add a link to https://docs.python.org/dev/library/os.html#python-utf-8-mode using utf8-mode reference. Please replace "UTF-8 Mode" with "Pyhon UTF-8 Mode".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The following commit authors need to sign the Contributor License Agreement: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thank you for the contribution however it has been decided that this will in fact not be documented, the attached issue has been closed as not planned. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.