@@ -858,7 +858,7 @@ PyArray_AdaptDescriptorToArray(PyArrayObject *arr, PyObject *dtype)
858858 * (Initially it is a pointer to the user-provided head pointer).
859859 * @param fixed_DType User provided fixed DType class
860860 * @param flags Discovery flags (reporting and behaviour flags, see def.)
861- * @param allow_copy Specifies if a copy is allowed during array creation.
861+ * @param never_copy Specifies if a copy is allowed during array creation.
862862 * @return The updated number of maximum dimensions (i.e. scalars will set
863863 * this to the current dimensions).
864864 */
@@ -868,7 +868,7 @@ PyArray_DiscoverDTypeAndShape_Recursive(
868868 npy_intp out_shape [NPY_MAXDIMS ],
869869 coercion_cache_obj * * * coercion_cache_tail_ptr ,
870870 PyArray_DTypeMeta * fixed_DType , enum _dtype_discovery_flags * flags ,
871- int allow_copy )
871+ int never_copy )
872872{
873873 PyArrayObject * arr = NULL ;
874874 PyObject * seq ;
@@ -926,7 +926,7 @@ PyArray_DiscoverDTypeAndShape_Recursive(
926926 requested_descr = * out_descr ;
927927 }
928928 arr = (PyArrayObject * )_array_from_array_like (obj ,
929- requested_descr , 0 , NULL , allow_copy );
929+ requested_descr , 0 , NULL , never_copy );
930930 if (arr == NULL ) {
931931 return -1 ;
932932 }
@@ -1120,7 +1120,7 @@ PyArray_DiscoverDTypeAndShape_Recursive(
11201120 max_dims = PyArray_DiscoverDTypeAndShape_Recursive (
11211121 objects [i ], curr_dims + 1 , max_dims ,
11221122 out_descr , out_shape , coercion_cache_tail_ptr , fixed_DType ,
1123- flags , allow_copy );
1123+ flags , never_copy );
11241124
11251125 if (max_dims < 0 ) {
11261126 return -1 ;
@@ -1160,7 +1160,7 @@ PyArray_DiscoverDTypeAndShape_Recursive(
11601160 * The result may be unchanged (remain NULL) when converting a
11611161 * sequence with no elements. In this case it is callers responsibility
11621162 * to choose a default.
1163- * @param allow_copy Specifies if a copy is allowed during array creation .
1163+ * @param never_copy Specifies that a copy is not allowed .
11641164 * @return dimensions of the discovered object or -1 on error.
11651165 * WARNING: If (and only if) the output is a single array, the ndim
11661166 * returned _can_ exceed the maximum allowed number of dimensions.
@@ -1173,7 +1173,7 @@ PyArray_DiscoverDTypeAndShape(
11731173 npy_intp out_shape [NPY_MAXDIMS ],
11741174 coercion_cache_obj * * coercion_cache ,
11751175 PyArray_DTypeMeta * fixed_DType , PyArray_Descr * requested_descr ,
1176- PyArray_Descr * * out_descr , int allow_copy )
1176+ PyArray_Descr * * out_descr , int never_copy )
11771177{
11781178 coercion_cache_obj * * coercion_cache_head = coercion_cache ;
11791179 * coercion_cache = NULL ;
@@ -1218,7 +1218,7 @@ PyArray_DiscoverDTypeAndShape(
12181218
12191219 int ndim = PyArray_DiscoverDTypeAndShape_Recursive (
12201220 obj , 0 , max_dims , out_descr , out_shape , & coercion_cache ,
1221- fixed_DType , & flags , allow_copy );
1221+ fixed_DType , & flags , never_copy );
12221222 if (ndim < 0 ) {
12231223 goto fail ;
12241224 }
0 commit comments