Skip to content

PYTHON_LLTRACE/PYTHON_OPT_DEBUG only reads first character of environment variable #148638

@StepfenShawn

Description

@StepfenShawn

Feature or enhancement

Proposal:

The PYTHON_LLTRACE and PYTHON_OPT_DEBUG environment variables are currently parsed by only reading the first character:

lltrace = *python_lltrace - '0';  // '10' becomes 1

This means values like PYTHON_LLTRACE=10 are interpreted as 1 instead of 10.

PR: #148636

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions