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

any extra that we are passed we should dup #638

Merged
merged 1 commit into from
Sep 18, 2017
Merged

Conversation

rokob
Copy link
Contributor

@rokob rokob commented Sep 14, 2017

Fixes #628

We modify the extra data that is passed in for utf-8 encoding, but that is a problem if there are frozen objects passed in. So to fix that we can dup the extra object that is passed in which will unfreeze it. We can't use our deep_copy because that uses clone which maintains the frozen status. So I added a deep_dup which is the same as deep_copy but calls dup instead.

@rokob rokob merged commit 7077723 into master Sep 18, 2017
@waltjones waltjones deleted the allow-frozen-things branch June 27, 2023 18:10
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.

RuntimeError: can't modify frozen Array
1 participant