Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions guide/src/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,16 @@ let obj_2 = existing_bound.clone();

</details>

### Untyped buffer API moved to PyUntypedBuffer

<details open>
<summary><small>Click to expand</small></summary>

`PyBuffer<T>` now is a typed wrapper around `PyUntypedBuffer`.
Many methods such as `PyBuffer::format` have been moved to `PyUntypedBuffer::format`. `PyBuffer<T>` dereferences to `PyUntypedBuffer`, so method call syntax will continue to work as-is.
Users may need to update references to the moved functions.
</details>

### Internal change to use multi-phase initialization

<details open>
Expand Down
1 change: 1 addition & 0 deletions newsfragments/5458.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add `pyo3::buffer::PyUntypedBuffer`, a type-erased form of `PyBuffer<T>`.
Loading
Loading