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

feat!: make mcstack immutable to avoid surprises #57

Merged
merged 1 commit into from
Feb 13, 2025
Merged

Conversation

dhdaines
Copy link
Owner

mcstack was mutable, meaning that you had to always save a copy of it in order to get the right marked contents for a ContentObject outside of iteration context. This was particularly problematic for PAVÉS' pdfminer.six emulation.

Turns out there isn't really any extra cost in making it a tuple, as it doesn't change very often, so (breaking change...) we do this here.

@dhdaines dhdaines merged commit 4bd897e into main Feb 13, 2025
8 checks passed
@dhdaines dhdaines deleted the immutable_mcstack branch February 13, 2025 19:58
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.

1 participant