diff options
author | Sebastian Berg <sebastianb@nvidia.com> | 2022-12-05 13:22:09 +0100 |
---|---|---|
committer | Sebastian Berg <sebastianb@nvidia.com> | 2022-12-05 13:22:09 +0100 |
commit | d9b75bcc944a71240cba6d684735bf3e7fd8468b (patch) | |
tree | f2d4d6e8290941a742c143f5f23fc5ff18003a6e /numpy | |
parent | 37d95c80e3d4e277839d5ccf9189639c3a87bed5 (diff) | |
download | numpy-d9b75bcc944a71240cba6d684735bf3e7fd8468b.tar.gz |
DOC: Tweak comparison code comment to be a bit more clear
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/src/multiarray/arrayobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/src/multiarray/arrayobject.c b/numpy/core/src/multiarray/arrayobject.c index b7f98d5b7..08e2cc683 100644 --- a/numpy/core/src/multiarray/arrayobject.c +++ b/numpy/core/src/multiarray/arrayobject.c @@ -974,8 +974,8 @@ array_richcompare(PyArrayObject *self, PyObject *other, int cmp_op) } /* - * At this point we are locked into comparing (both are arrays) or - * something we would have tried to convert. + * At this point `self` can take control of the operation by converting + * `other` to an array (it would have a chance to take control). * If we are not in `==` and `!=`, this is an error and we hope that * the existing error makes sense and derives from `TypeError` (which * python would raise for `NotImplemented`) when it should. |