Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix caching error in the push evaluator #2332

Merged
merged 1 commit into from
Jul 5, 2017
Merged

Fix caching error in the push evaluator #2332

merged 1 commit into from
Jul 5, 2017

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jul 4, 2017

Initialising result to {} in the parameters meant that every call to
_flatten_dict used the same target dictionary.

I'm hopeful this will fix #2270,
but I suspect it won't. (This code seems to have been here since forever,
unlike the bug, and I don't really think it explains the observed
behaviour). Still, it makes it hard to investigate the problem.

Initialising `result` to `{}` in the parameters meant that every call to
_flatten_dict used the *same* target dictionary.

I'm hopeful this will fix #2270,
but I suspect it won't. (This code seems to have been here since forever,
unlike the bug, and I don't really think it explains the observed
behaviour). Still, it makes it hard to investigate the problem.
@erikjohnston
Copy link
Member

I hate python so much.

LGTM

@richvdh richvdh merged commit 3d31b39 into develop Jul 5, 2017
@richvdh richvdh deleted the rav/fix_pushes branch July 5, 2017 10:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants