v0.3.1
CownCapsule serialization support for nested cowns.
Bug Fixes
- Removed the ownership check in
_cown_sharedthat prevented a
CownCapsulefrom being serialized to XIData when it was the value
of anotherCown. The check was unnecessary —_cown_sharedonly
stores a pointer and ownership is enforced at acquire time.
Improvements
- Added
CownCapsule.__reduce__withCOWN_INCREFpinning so that a
CownCapsuleembedded in a container (dict, list, etc.) can survive
the pickle round-trip used byobject_to_xidata. A module-level
reconstructor (_cown_capsule_from_pointer) inherits the pin without
a redundantCOWN_INCREF, and validates the process ID on unpickle to
guard against cross-process misuse.