8000 Add changelog and expired attributes · numpy/numpy@b51dad2 · GitHub
[go: up one dir, main page]

Skip to content

Commit b51dad2

Browse files
committed
Add changelog and expired attributes
1 parent 27a8806 commit b51dad2

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
* ``np.find_common_type`` has been removed. Use ``numpy.promote_types`` or
2+
``numpy.result_type`` instead. To achieve semantics for the ``scalar_types``
3+
argument, use ``numpy.result_type`` and pass the Pythonvalues ``0``, ``0.0``, or ``0j``.
4+
5+
* ``np.round_`` has been removed. Use ``np.round`` instead.
6+
7+
* ``np.nbytes`` has been removed. Use ``np.dtype(<dtype>).itemsize`` instead.

numpy/_expired_attrs_2_0.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,13 @@
2626
"add_newdoc_ufunc":
2727
"It's an internal function and doesn't have a replacement.",
2828
"compat": "There's no replacement, as Python 2 is no longer supported.",
29-
"safe_eval": "Use `ast.literal_eval` instead."
29+
"safe_eval": "Use `ast.literal_eval` instead.",
30+
31+
"find_common_type":
32+
"This function is deprecated, use `numpy.promote_types` or "
33+
"`numpy.result_type` instead. To achieve semantics for the "
34+
"`scalar_types` argument, use `numpy.result_type` and pass the "
35+
"Python values `0`, `0.0`, or `0j`.",
36+
"round_": "Use `np.round` instead.",
37+
"nbytes": "Use `np.dtype(<dtype>).itemsize` instead."
3038
}

0 commit comments

Comments
 (0)
0