Skip to content

fix: Allow PYTHONSTARTUP to define variables#2911

Merged
aignas merged 2 commits intobazel-contrib:mainfrom
philsc:dev/philsc/repl-fix-locals
May 19, 2025
Merged

fix: Allow PYTHONSTARTUP to define variables#2911
aignas merged 2 commits intobazel-contrib:mainfrom
philsc:dev/philsc/repl-fix-locals

Conversation

@philsc
Copy link
Copy Markdown
Contributor

@philsc philsc commented May 19, 2025

With the current //python/bin:repl implementation, any variables
defined in PYTHONSTARTUP are not actually available in the REPL
itself. I accidentally omitted this in the first patch.

This patch fixes the issue and adds appropriate tests.

philsc added 2 commits May 18, 2025 22:38
With the current `//python/bin:repl` implementation, any variables
defined in `PYTHONSTARTUP` are not actually available in the REPL
itself. I accidentally omitted this in the first patch.

This patch fixes the issue and adds appropriate tests.
@philsc philsc requested review from aignas and rickeylev as code owners May 19, 2025 05:44
Copy link
Copy Markdown
Collaborator

@aignas aignas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aignas aignas added this pull request to the merge queue May 19, 2025
Merged via the queue into bazel-contrib:main with commit acc8f82 May 19, 2025
3 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.

2 participants