Skip to content

Commit 8b354b6

Browse files
committed
(Update the changelog: PyArrayDescr::new)
1 parent ccfb471 commit 8b354b6

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

CHANGELOG.md

+14-13
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,23 @@
88
- `PyArray::from_exact_iter` does not unsoundly trust `ExactSizeIterator::len` any more ([#262](https://github.com/PyO3/rust-numpy/pull/262))
99
- `PyArray::as_cell_slice` was removed as it unsoundly interacts with `PyReadonlyArray` allowing safe code to violate aliasing rules ([#260](https://github.com/PyO3/rust-numpy/pull/260))
1010
- `rayon` feature is now removed, and directly specifying the feature via `ndarray` dependency is recommended ([#250](https://github.com/PyO3/rust-numpy/pull/250))
11-
- Descriptors rework and related changes ([#256](https://github.com/PyO3/rust-numpy/pull/256)):
12-
- Remove `DataType`
13-
- Add the top-level `dtype` function for easy access to registered dtypes
14-
- Add `PyArrayDescr::of`, `PyArrayDescr::into_dtype_ptr` and `PyArrayDescr::is_equiv_to`
15-
- `Element` trait has been simplified to just `IS_COPY` const and `get_dtype` method
11+
- `Element` trait and `PyArrayDescr` changes ([#256](https://github.com/PyO3/rust-numpy/pull/256)):
12+
- `Element` trait has been simplified to `get_dtype()` and `IS_COPY`
13+
- New `PyArrayDescr` methods: `of`, `into_dtype_ptr`, `is_equiv_to`
14+
- Added `numpy::dtype` function
1615
- `Element` is now implemented for `isize`
17-
- `c32` and `c64` aliases have been replaced with `Complex32` and `Complex64`
16+
- `c32` / `c64` have been renamed with `Complex32` / `Complex64`
1817
- `ShapeError` has been split into `TypeError` and `DimensionalityError`
19-
- `i32`, `i64`, `u32` and `u64` are now guaranteed to map to
20-
`np.int32`, `np.int64`, `np.uint32` and `np.uint64` respectively
21-
- Remove `cfg_if` dependency
22-
- New methods in `PyArrayDescr`, catching up with `np.dtype`:
18+
- `i32`, `i64`, `u32`, `u64` are now guaranteed to map to `np.u?int{32,64}`.
19+
- Removed `cfg_if` dependency
20+
- Removed `DataType` enum
21+
- Added `PyArrayDescr::new` constructor
22+
([#266](https://github.com/PyO3/rust-numpy/pull/266))
23+
- New `PyArrayDescr` methods
24+
([#266](https://github.com/PyO3/rust-numpy/pull/261)):
2325
- `num`, `base`, `ndim`, `shape`, `byteorder`, `char`, `kind`, `itemsize`,
24-
`alignment`, `flags`, `has_object`, `is_aligned_struct`, `names`
25-
- Added `get_field` to query fields of structured dtypes
26-
- Additional helper methods: `has_subarray`, `has_fields`, `is_native_byteorder`
26+
`alignment`, `flags`, `has_object`, `is_aligned_struct`, `names`,
27+
`get_field`, `has_subarray`, `has_fields`, `is_native_byteorder`
2728
- Renamed `get_type` to `typeobj`
2829

2930
- v0.15.1

0 commit comments

Comments
 (0)