Skip to content

Commit

Permalink
Fix wording for comparison operators.
Browse files Browse the repository at this point in the history
  • Loading branch information
hameerabbasi committed Jan 23, 2024
1 parent 293512d commit 7103b4b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/2021.12/API_specification/array_object.rst
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ A conforming implementation of the array API standard must provide and support a
- `operator.ne(x1, x2) <https://docs.python.org/3/library/operator.html#operator.ne>`_
- `operator.__ne__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__ne__>`_

Comparison operators should be defined for arrays having any data type.
: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.

In-place Operators
~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion spec/2022.12/API_specification/array_object.rst
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ A conforming implementation of the array API standard must provide and support a
- `operator.ne(x1, x2) <https://docs.python.org/3/library/operator.html#operator.ne>`_
- `operator.__ne__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__ne__>`_

Comparison operators should be defined for arrays having any data type.
: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.

In-place Operators
~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion spec/draft/API_specification/array_object.rst
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ A conforming implementation of the array API standard must provide and support a
- `operator.ne(x1, x2) <https://docs.python.org/3/library/operator.html#operator.ne>`_
- `operator.__ne__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__ne__>`_

Comparison operators should be defined for arrays having any data type.
: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.

In-place Operators
~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit 7103b4b

Please sign in to comment.