Skip to content

Commit 7103b4b

Browse files
committed
Fix wording for comparison operators.
1 parent 293512d commit 7103b4b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: spec/2021.12/API_specification/array_object.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ A conforming implementation of the array API standard must provide and support a
170170
- `operator.ne(x1, x2) <https://docs.python.org/3/library/operator.html#operator.ne>`_
171171
- `operator.__ne__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__ne__>`_
172172

173-
Comparison operators should be defined for arrays having any data type.
173+
:meth:`.array.__lt__`, :meth:`.array.__le__`, :meth:`.array.__gt__`, :meth:`.array.__ge__` are only defined for arrays having real-valued data types. Other comparison operators should be defined for arrays having any data type.
174174

175175
In-place Operators
176176
~~~~~~~~~~~~~~~~~~

Diff for: spec/2022.12/API_specification/array_object.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ A conforming implementation of the array API standard must provide and support a
163163
- `operator.ne(x1, x2) <https://docs.python.org/3/library/operator.html#operator.ne>`_
164164
- `operator.__ne__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__ne__>`_
165165

166-
Comparison operators should be defined for arrays having any data type.
166+
:meth:`.array.__lt__`, :meth:`.array.__le__`, :meth:`.array.__gt__`, :meth:`.array.__ge__` are only defined for arrays having real-valued data types. Other comparison operators should be defined for arrays having any data type.
167167

168168
In-place Operators
169169
~~~~~~~~~~~~~~~~~~

Diff for: spec/draft/API_specification/array_object.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ A conforming implementation of the array API standard must provide and support a
163163
- `operator.ne(x1, x2) <https://docs.python.org/3/library/operator.html#operator.ne>`_
164164
- `operator.__ne__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__ne__>`_
165165

166-
Comparison operators should be defined for arrays having any data type.
166+
:meth:`.array.__lt__`, :meth:`.array.__le__`, :meth:`.array.__gt__`, :meth:`.array.__ge__` are only defined for arrays having real-valued data types. Other comparison operators should be defined for arrays having any data type.
167167

168168
In-place Operators
169169
~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)