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
{{ message }}
PYTHON_LLTRACE/PYTHON_OPT_DEBUG only reads first character of environment variable #148638
The code currently checks if (lltrace >= 5) in multiple places (ceval.h, ceval_macros.h, bytecodes.c), which explicitly handles values of 5 and above. For example:
My thought is: While today's levels only go up to 5, the >= comparison itself signals that higher values are semantically valid and may be used for even more verbose tracing in the future🤔?
Activity
Fidget-Spinner commentedon Apr 16, 2026
I think we should just remove the TODO comments. There's no need to parse them anyways, these values never exceed 5.
StepfenShawn commentedon Apr 16, 2026
The code currently checks if (lltrace >= 5) in multiple places (ceval.h, ceval_macros.h, bytecodes.c), which explicitly handles values of 5 and above. For example:
My thought is: While today's levels only go up to 5, the
>=comparison itself signals that higher values are semantically valid and may be used for even more verbose tracing in the future🤔?Fidget-Spinner commentedon Apr 16, 2026
The env var is used for internal development purposes. I really hope we dont exceed 9 levels.