You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found when testing PYTHONINSPECT for #143134, when you set PYTHONINSPECT to a "non-empty" string that is 0, it is checked in initconfig.c with _Py_get_env_flag:
No, in other cases the documentation is wrong. But in this case it seems that only the value of sys.flags.inspect is incorrect. The interpreter behavior and the documentation are consistent.
Activity
serhiy-storchaka commentedon Dec 24, 2025
According to documentation:
So,
sys.flags.inspectis incorrect.StanFromIreland commentedon Dec 24, 2025
So you prefer to fix them all: #143134?
serhiy-storchaka commentedon Dec 24, 2025
No, in other cases the documentation is wrong. But in this case it seems that only the value of
sys.flags.inspectis incorrect. The interpreter behavior and the documentation are consistent.gh-143135: Fix sys.flags.inspect when PYTHONINSPECT=0 (GH-143136)
pythongh-143135: Fix sys.flags.inspect when PYTHONINSPECT=0 (pythonGH…
[3.14] gh-143135: Fix sys.flags.inspect when PYTHONINSPECT=0 (GH-143136…
[3.13] pythongh-143135: Fix sys.flags.inspect when PYTHONINSPECT=0 (p…
[3.13] gh-143135: Fix sys.flags.inspect when PYTHONINSPECT=0 (GH-143136…