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

Support Marshal dump / load with frozen object #4

Merged
merged 1 commit into from
Jan 22, 2023

Conversation

joeldrapper
Copy link
Contributor

@joeldrapper joeldrapper commented Jan 22, 2023

Using custom marshal_dump and marshal_load methods to ensure the loaded object is frozen. Since there's no way for the dumped object to not be frozen, the loader is hard-coded to freeze.

Closes #3

@joeldrapper joeldrapper changed the title Support Marshal dump / load Support Marshal dump / load with frozen object Jan 22, 2023
@saturnflyer saturnflyer merged commit 50208b4 into saturnflyer:main Jan 22, 2023
@joeldrapper joeldrapper deleted the marshal branch January 22, 2023 12:59
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.

Marshal.dump and .load returns a non-frozen object
2 participants