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

BUG: fix the weakkeydict key errors #1399

Merged
merged 2 commits into from
Jan 26, 2016

Conversation

llllllllll
Copy link
Member

I have gotten a bunch of magical mysterious weakkeydict errors. This just uses a non data descriptor instead and replaces the dshape attribute on instance to get the same caching. This removes any strange cache issues and should be faster.

This change is taken from: #1348 but this particular bug is causing me a lot of problems so I am submitting it as its own change.

@kwmsmith
Copy link
Member

+1: besides fixing the issue, it simplifies the code -- I'm always rusty on weak refs, and when combining weakkeydicts with caching / memoization, the complexity was making other bugfixes difficult.

LGTM.

kwmsmith added a commit that referenced this pull request Jan 26, 2016
BUG: fix the weakkeydict key errors
@kwmsmith kwmsmith merged commit 5568455 into blaze:master Jan 26, 2016
@llllllllll llllllllll deleted the weak-dict-is-weak branch January 26, 2016 18:38
@llllllllll
Copy link
Member Author

They, the only reason I normally prefer the weakkeydict approach is that the descriptor can be general because you don't need to know the name of the attribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants