8000 DOC: Remove a reference to __array_priority__. · njsmith/numpy@a70842c · GitHub
[go: up one dir, main page]

Skip to content

Commit a70842c

Browse files
committed
DOC: Remove a reference to __array_priority__.
Also correct its documented default value.
1 parent 276a4e1 commit a70842c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

doc/source/reference/arrays.classes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,14 @@ Numpy provides several hooks that classes can customize:
147147
The value of this attribute is used to determine what type of
148148
object to return in situations where there is more than one
149149
possibility for the Python type of the returned object. Subclasses
150-
inherit a default value of 1.0 for this attribute.
150+
inherit a default value of 0.0 for this attribute.
151151

152152
.. function:: class.__array__([dtype])
153153

154154
If a class (ndarray subclass or not) having the :func:`__array__`
155155
method is used as the output object of an :ref:`ufunc
156156
<ufuncs.output-type>`, results will be written to the object
157-
returned by :func:`__array__`. Similar conversion is done on
157+
returned by :func:`__array__`. Similar conversion is done on
158158
input arrays.
159159

160160

doc/source/reference/arrays.ndarray.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ Other attributes
239239
ndarray.imag
240240
ndarray.flat
241241
ndarray.ctypes
242-
__array_priority__
243242

244243

245244
.. _arrays.ndarray.array-interface:

0 commit comments

Comments
 (0)
0