pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/3509fa5a12855805f0c6d7f8a6a3b162744a8fd4

gh-143135: Fix sys.flags.inspect when PYTHONINSPECT=0 (GH-143136) · python/cpython@3509fa5 · GitHub
Skip to content

Commit 3509fa5

Browse files
gh-143135: Fix sys.flags.inspect when PYTHONINSPECT=0 (GH-143136)
1 parent 84b7e69 commit 3509fa5

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Set :data:`sys.flags.inspect` to ``1`` when :envvar:`PYTHONINSPECT` is ``0``.
2+
Previously, it was set to ``0`` in this case.

Python/initconfig.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1846,7 +1846,9 @@ config_read_env_vars(PyConfig *config)
18461846
_Py_get_env_flag(use_env, &config->parser_debug, "PYTHONDEBUG");
18471847
_Py_get_env_flag(use_env, &config->verbose, "PYTHONVERBOSE");
18481848
_Py_get_env_flag(use_env, &config->optimization_level, "PYTHONOPTIMIZE");
1849-
_Py_get_env_flag(use_env, &config->inspect, "PYTHONINSPECT");
1849+
if (!config->inspect && _Py_GetEnv(use_env, "PYTHONINSPECT")) {
1850+
config->inspect = 1;
1851+
}
18501852

18511853
int dont_write_bytecode = 0;
18521854
_Py_get_env_flag(use_env, &dont_write_bytecode, "PYTHONDONTWRITEBYTECODE");

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy