Skip to content

Remove Constants pickle migration shim (1.2.1 bridge no longer needed)#178

Merged
derek73 merged 1 commit into
masterfrom
fix/drop-pickle-migration-shim
Jun 29, 2026
Merged

Remove Constants pickle migration shim (1.2.1 bridge no longer needed)#178
derek73 merged 1 commit into
masterfrom
fix/drop-pickle-migration-shim

Conversation

@derek73

@derek73 derek73 commented Jun 29, 2026

Copy link
Copy Markdown
Owner

Summary

1.2.1 shipped with a compatibility shim in Constants.__setstate__ that allowed pickles written by the old dir()-sweep __getstate__ (which always included the read-only suffixes_prefixes_titles property in the state dict) to load without raising AttributeError. That was explicitly a one-version bridge.

Users who have persisted pre-1.2.1 blobs can load and re-pickle under 1.2.1 before upgrading to 1.3.0. Adds an upgrade note to the release log explaining this migration path.

Changes

  • Remove the property-skip guard from Constants.__setstate__
  • Remove test_unpickle_legacy_state_with_property_key (covered the shim)
  • Add upgrade note to docs/release_log.rst for the 1.3.0 entry

🤖 Generated with Claude Code

1.2.1 shipped with a compatibility shim that let pickles written by the
old dir()-sweep __getstate__ (which included the read-only
suffixes_prefixes_titles property) load without raising AttributeError.
That was a one-version bridge; users who persisted pre-1.2.1 blobs can
load and re-pickle under 1.2.1 before upgrading to 1.3.0.

Remove the shim and its regression test, and add an upgrade note to
the release log explaining the migration path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@derek73 derek73 self-assigned this Jun 29, 2026
@derek73 derek73 added this to the v1.3.0 milestone Jun 29, 2026
@derek73 derek73 merged commit c1de58f into master Jun 29, 2026
8 checks passed
@derek73 derek73 deleted the fix/drop-pickle-migration-shim branch June 29, 2026 19: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.

1 participant