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

Eliminate infinite loop when pickle loads BaseAWSObject and objects derived from it. #1016

Merged
merged 6 commits into from May 23, 2018

Conversation

createdbysk
Copy link

If pickle loads this object, then getattr will cause an infinite loop when pickle invokes this object to look for setstate before attributes is "loaded" into this object. Therefore, short circuit the rest of this call if attributes is not loaded yet. See http://grokbase.com/t/python/python-bugs-list/092sczhjwk/issue5370-unpickling-vs-getattr for source of this change.

@phobologic
Copy link
Member

Hey @satvidh - thanks for the PR. I've gone ahead and added a test for the issue this has fixed, and I'm going to merge this. Thanks again, and sorry for the delay!

@phobologic phobologic merged commit 88b9666 into cloudtools:master May 23, 2018
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.

None yet

2 participants