diff --git a/CHANGELOG.md b/CHANGELOG.md index 9dfce70..23afd73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,21 @@ This is the changelog for arro3. pyo3-arrow has a separate changelog. +## [0.4.3] - 2024-11-21 + +### What's Changed + +- Build wheels for Python 3.13 by @kylebarron in https://github.com/kylebarron/arro3/pull/260 +- Raise RuntimeWarning when compiled in debug mode by @kylebarron in https://github.com/kylebarron/arro3/pull/255 +- Add `Buffer.to_bytes` by @kylebarron in https://github.com/kylebarron/arro3/pull/251 +- Make buffers have a length by @martindurant in https://github.com/kylebarron/arro3/pull/252 + +## New Contributors + +- @martindurant made their first contribution in https://github.com/kylebarron/arro3/pull/252 + +**Full Changelog**: https://github.com/kylebarron/arro3/compare/py-v0.4.2...py-0.4.3 + ## [0.4.2] - 2024-10-14 ### What's Changed diff --git a/arro3-core/python/arro3/core/_core.pyi b/arro3-core/python/arro3/core/_core.pyi index 562c348..43be6d0 100644 --- a/arro3-core/python/arro3/core/_core.pyi +++ b/arro3-core/python/arro3/core/_core.pyi @@ -211,7 +211,7 @@ class Buffer: def __init__(self, buffer) -> None: ... def __buffer__(self, flags: int) -> memoryview: ... def __len__(self) -> int: ... - def as_bytes(self) -> bytes: + def to_bytes(self) -> bytes: """Copy this buffer into a Python `bytes` object.""" class ChunkedArray: diff --git a/pyo3-arrow/src/buffer.rs b/pyo3-arrow/src/buffer.rs index 55a0717..0851319 100644 --- a/pyo3-arrow/src/buffer.rs +++ b/pyo3-arrow/src/buffer.rs @@ -76,7 +76,7 @@ impl PyArrowBuffer { buf } - fn as_bytes<'py>(&'py self, py: Python<'py>) -> Bound<'py, PyBytes> { + fn to_bytes<'py>(&'py self, py: Python<'py>) -> Bound<'py, PyBytes> { PyBytes::new_bound(py, &self.0) }