Skip to content

Don't share mutable objects into change objects, and from change objects - #2245

Merged
justvanrossum merged 7 commits into
mainfrom
copy-change-to-avoid-share-issue-2241
Jul 31, 2025
Merged

Don't share mutable objects into change objects, and from change objects#2245
justvanrossum merged 7 commits into
mainfrom
copy-change-to-avoid-share-issue-2241

Conversation

@justvanrossum

Copy link
Copy Markdown
Member

This fixes #2241.

The root cause was confusion regarding mutable objects that got shared in/via change objects that should not have been shared. The fix should be thorough and watertight, but might come at the expense of some performance, although I doubt this will be noticable in most common cases.

@justvanrossum
justvanrossum merged commit a762a06 into main Jul 31, 2025
5 checks passed
@justvanrossum
justvanrossum deleted the copy-change-to-avoid-share-issue-2241 branch July 31, 2025 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.

bug when creating a new glyph source while pasting shape

1 participant