cultcache-py: map payloads decode under msgpack's pure-Python fallback #180

Merged
eureka merged 1 commit from libby/py-checked-map-pairs-iterable into main 2026-11-27 19:40:32 +00:00
Owner

_checked_map (the MessagePack object_pairs_hook) took its pairs as a list. msgpack's C extension passes a list, its pure-Python fallback a generator, so len(pairs) failed after the first loop consumed it and every map payload was unreadable with a pure-Python msgpack. Found by Nibu bundling msgpack into the Brokkr Blender extension, where one pure-Python wheel can then serve every platform.

Test: a child process with MSGPACK_PUREPYTHON=1 decodes a nested map and refuses a duplicate key; it fails without the fix.

🤖 Generated with Claude Code

`_checked_map` (the MessagePack `object_pairs_hook`) took its pairs as a list. msgpack's C extension passes a list, its pure-Python fallback a generator, so `len(pairs)` failed after the first loop consumed it and every map payload was unreadable with a pure-Python msgpack. Found by Nibu bundling msgpack into the Brokkr Blender extension, where one pure-Python wheel can then serve every platform. Test: a child process with `MSGPACK_PUREPYTHON=1` decodes a nested map and refuses a duplicate key; it fails without the fix. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
cultcache-py: map payloads decode under msgpack's pure-Python fallback
Some checks failed
CultMesh portability and performance / ubuntu-latest reactive semantics and leases (pull_request) Failing after 46m38s
246a7ea7d4
The object_pairs_hook took its pairs as a list; msgpack's fallback passes
a generator, so len() failed and every map payload was unreadable with a
pure-Python msgpack (a Blender extension wheel, MSGPACK_PUREPYTHON=1).
Reported by Nibu while bundling msgpack into the Brokkr add-on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
eureka merged commit 9fc4bdda6a into main 2026-11-27 19:40:32 +00:00
eureka deleted branch libby/py-checked-map-pairs-iterable 2026-11-27 19:40:32 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GameCult/CultLib!180
No description provided.