Closed Icxolu closed 6 months ago
The commit message
deprecate PyArray::D>::borrow_from_array
seems to still contain a stray ::D>
or GitHub's UI is somehow mangling this.
(As an aside, I really like this commit as I think it is a glimpse of how the bound API will play out simplifying memory-management-remembering-there-is-a-GIL-pool-behind-the-scenes gymnastics throughout the ecosystem.)
Following #415
This migrates
PyArray
constructors to theBound
API. I created a commit for each constructor migration. To keep the diff reviewable I will split this over multiple PRs. This starts the migration withPyArray::{new, borrow_from_array, from_owned_array, zeros}
.(This also reexports
PyArray0Methods
, which we forgot in #415)