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

fix: pickleability of CompilerData #3803

Merged

Conversation

charles-cooper
Copy link
Member

InputBundle has the _cache attribute, which was implemented using an anonymous function, which is not pickleable. Change _cache to use a dedicated object type.

also refactors timeit() to be a contextmanager instead of just a function decorator.

What I did

How I did it

How to verify it

Commit message

Commit message for the final, squashed PR. (Optional, but reviewers will appreciate it! Please see our commit message style guide for what we would ideally like to see in a commit message.)

Description for the changelog

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

InputBundle has the `_cache` attribute, which was implemented using
an anonymous function, which is not pickleable. Change `_cache` to use a
dedicated object type.

also refactors `timeit()` to be a contextmanager instead of just a
function decorator.
@charles-cooper charles-cooper changed the title fix: pickleability of CompilerData fix: pickleability of CompilerData Feb 22, 2024
@charles-cooper charles-cooper merged commit 977ad79 into vyperlang:master Feb 22, 2024
84 checks passed
@charles-cooper charles-cooper deleted the fix/compiler-data-pickle branch February 22, 2024 17:09
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