summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHameer Abbasi <hameerabbasi@yahoo.com>2019-08-25 14:31:40 +0200
committerHameer Abbasi <hameerabbasi@yahoo.com>2019-08-25 14:31:40 +0200
commitd6b60291e38b167c7eaf246cee1bb663a36792ab (patch)
treee01c39d0a89fd9b366cd22466fd078a66a86e70e
parent846b49bdc18baecdf173f37cf42f87efc1bc555c (diff)
downloadnumpy-d6b60291e38b167c7eaf246cee1bb663a36792ab.tar.gz
Make statement about conversion more precise.
-rw-r--r--doc/neps/nep-0031-uarray.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/neps/nep-0031-uarray.rst b/doc/neps/nep-0031-uarray.rst
index 7712e1b9f..98f253bae 100644
--- a/doc/neps/nep-0031-uarray.rst
+++ b/doc/neps/nep-0031-uarray.rst
@@ -94,7 +94,9 @@ And a library that implements a NumPy-like API will use it in the following mann
@implements(np.asarray)
def asarray(a, dtype=None, order=None):
# Code here
- # Must return NotImplemented for unsupported array types
+ # Either this method or __ua_convert__ must
+ # return NotImplemented for unsupported types,
+ # Or they shouldn't be marked as dispatchable.
# Provides a default implementation for ones and zeros.
@implements(np.empty)