Skip to content

fix(builtins): make exported variables visible to Python's os.getenv#486

Merged
chaliy merged 1 commit intomainfrom
claude/fix-316-Y2nIj
Mar 2, 2026
Merged

fix(builtins): make exported variables visible to Python's os.getenv#486
chaliy merged 1 commit intomainfrom
claude/fix-316-Y2nIj

Conversation

@chaliy
Copy link
Contributor

@chaliy chaliy commented Mar 2, 2026

Summary

  • Merged ctx.variables into env when running Python code so export VAR=val is visible to os.getenv()
  • Unskipped two Python spec tests: python3_vfs_getenv and python3_nested_dict_access

Closes #316

Test plan

  • python3_vfs_getenv spec test now passes
  • python3_nested_dict_access spec test now passes
  • All existing Python tests pass

Merge ctx.variables into env when running Python code so that variables
set via `export VAR=val` are visible to os.getenv(). Also unskip two
Python spec tests that now pass (getenv, nested dict access).

Closes #316

https://claude.ai/code/session_01WZjYqxm5xMPAEe7FSHJkDy
@chaliy chaliy force-pushed the claude/fix-316-Y2nIj branch from 93f107b to 05afc35 Compare March 2, 2026 20:34
@chaliy chaliy merged commit 15e88e0 into main Mar 2, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: implement missing Python/Monty features (set ops, filter, dict comprehension, str.format, sorted key, chain assignment)

2 participants