PyO3 v0.16.6 Release Notes

Release Date: 2022-08-23 // over 1 year ago
  •  Changed

    • 🛠 Fix soundness issues with PyCapsule type with select workarounds. Users are encourage to upgrade to PyO3 0.17 at their earliest convenience which contains API breakages which fix the issues in a long-term fashion. #2522
      • PyCapsule::new and PyCapsule::new_with_destructor now take ownership of a copy of the name to resolve a possible use-after-free.
      • PyCapsule::name now returns an empty CStr instead of dereferencing a null pointer if the capsule has no name.
      • The destructor F in PyCapsule::new_with_destructor will never be called if the capsule is deleted from a thread other than the one which the capsule was created in (a warning will be emitted).
    • 🛰 Panics during drop of panic payload caught by PyO3 will now abort. #2544