cultcache-py: map payloads decode under msgpack's pure-Python fallback #180
Loading…
Reference in a new issue
No description provided.
Delete branch "libby/py-checked-map-pairs-iterable"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
_checked_map(the MessagePackobject_pairs_hook) took its pairs as a list. msgpack's C extension passes a list, its pure-Python fallback a generator, solen(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=1decodes a nested map and refuses a duplicate key; it fails without the fix.🤖 Generated with Claude Code