File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ useful.
52
52
53
53
Adding a new module
54
54
-------------------
55
+
55
56
It must be stated upfront that getting a new module into the stdlib is very
56
57
difficult. Adding any significant amount of code to the stdlib increases the
57
58
burden placed upon core developers. It also means that the module somewhat
@@ -137,3 +138,17 @@ once the authors of the module sign
137
138
:ref: `contributor agreements <contributor_agreement >`.
138
139
139
140
.. _issue tracker : https://github.com/python/cpython/issues
141
+
142
+ Adding a new environment variable
143
+ ---------------------------------
144
+
145
+ Names of environment variables should be uppercase and, from Python 3.13
146
+ onwards, use underscores for readability and accessibility.
147
+
148
+ For example, use ``PYTHON_CPU_COUNT `` instead of ``PYTHONCPUCOUNT ``.
149
+
150
+ See also:
151
+
152
+ * :ref: `python:using-on-envvars `
153
+ * `"Change environment variable style" Discourse discussion
154
+ <https://discuss.python.org/t/change-environment-variable-style/35180> `__
You can’t perform that action at this time.
0 commit comments