summaryrefslogtreecommitdiff
path: root/doc/release/upcoming_changes/22963.new_feature.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/release/upcoming_changes/22963.new_feature.rst')
-rw-r--r--doc/release/upcoming_changes/22963.new_feature.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/release/upcoming_changes/22963.new_feature.rst b/doc/release/upcoming_changes/22963.new_feature.rst
new file mode 100644
index 000000000..88ec3f641
--- /dev/null
+++ b/doc/release/upcoming_changes/22963.new_feature.rst
@@ -0,0 +1,7 @@
+String dtype instances can be created from the string abstract dtype classes
+----------------------------------------------------------------------------
+It is now possible to create a string dtype instance with a size without
+using the string name of the dtype. For example, ``type(np.dtype('U'))(8)``
+will create a dtype that is equivalent to ``np.dtype('U8')``. This feature
+is most useful when writing generic code dealing with string dtype
+classes.