Skip to content

os.environ description implies environment variables automatically capitalized #141823

@dwvisser

Description

@dwvisser

Documentation

In the os package doc page, there is the following statement:

For example, environ['monty'] = 'python' maps the key 'MONTY' to the value 'python'.

I have tested, and actually this maps the key 'monty', not an all caps version of it.

>>> os.environ["monty"] = "python"
>>> "MONTY" in os.environ
False
>>> "monty" in os.environ
True

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions