summaryrefslogtreecommitdiff
path: root/doc/source/reference
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2020-11-04 18:44:24 -0600
committerSebastian Berg <sebastian@sipsolutions.net>2020-11-24 21:25:02 -0600
commit3cfcd221818b489712b8cfe1082743a1056b42ec (patch)
tree23cd1d90628e138dba58f8dfca9724ea245f6dab /doc/source/reference
parent918ed48eeffaf26b6ebc0d9a1296d756a349bc7d (diff)
downloadnumpy-3cfcd221818b489712b8cfe1082743a1056b42ec.tar.gz
MAINT: Rewrite can-cast logic in terms of NEP 42
Diffstat (limited to 'doc/source/reference')
-rw-r--r--doc/source/reference/global_state.rst15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/source/reference/global_state.rst b/doc/source/reference/global_state.rst
index 7bf9310e8..b59467210 100644
--- a/doc/source/reference/global_state.rst
+++ b/doc/source/reference/global_state.rst
@@ -83,3 +83,18 @@ in C which iterates through arrays that may or may not be
contiguous in memory.
Most users will have no reason to change these; for details
see the :ref:`memory layout <memory-layout>` documentation.
+
+Using the new casting implementation
+------------------------------------
+
+Within NumPy 1.20 it is possible to enable the new experimental casting
+implementation for testing purposes. To do this set::
+
+ NPY_USE_NEW_CASTINGIMPL=1
+
+Setting the flag is only useful to aid with NumPy developement to ensure the
+new version is bug free and should be avoided for production code.
+It is a helpful test for projects that either create custom datatypes or
+use for example complicated structured dtypes. The flag is expected to be
+removed in 1.21 with the new version being always in use.
+