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

Load before getting size in __getstate__ #7105

Merged
merged 3 commits into from Apr 23, 2023

Conversation

bigcat88
Copy link
Contributor

Fixes the same what was in #7032 but for deepcopy(im) operation.

Changes proposed in this pull request:

  • first we load image data in __getstate__ and then only fill list with it's attributes.

bigcat88 and others added 2 commits April 21, 2023 17:42
@radarhere
Copy link
Member

I've created bigcat88#4 with a suggestion to simplify and move the test.

@radarhere radarhere changed the title Load image before deepcopy(__getstate__) Load before getting size in __getstate__ Apr 23, 2023
@radarhere radarhere merged commit 48a6c3f into python-pillow:main Apr 23, 2023
57 of 58 checks passed
@bigcat88 bigcat88 deleted the load-before-deepcopy branch May 11, 2023 17:18
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