Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENG-4098] Deconfuse key/value of State.get_value / dict / get_delta #4371

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

masenf
Copy link
Collaborator

@masenf masenf commented Nov 12, 2024

Because of some dodgy logic in Base.get_value and State.dict / State.get_delta when the value of some state var X happened to be the name of another var in the state Y, then the value for X would be returned as the value of Y.

wat.

Fixes #4369

Because of some dodgy logic in Base.get_value and State.dict / State.get_delta
when the value of some state var X happened to be the name of another var in
the state Y, then the value for X would be returned as the value of Y.

wat.

Fixes #4369
Copy link

linear bot commented Nov 12, 2024

Copy link
Member

@adhami3310 adhami3310 left a comment

Choose a reason for hiding this comment

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

wat

@masenf masenf merged commit 5d88263 into main Nov 12, 2024
33 of 34 checks passed
@masenf masenf deleted the masenf/state-var-wrong-value branch November 12, 2024 21:24
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.

Variable-Name/String Collision Causes Unintended Variable Replacement
3 participants