diff options
author | Hameer Abbasi <hameerabbasi@yahoo.com> | 2019-08-25 14:31:40 +0200 |
---|---|---|
committer | Hameer Abbasi <hameerabbasi@yahoo.com> | 2019-08-25 14:31:40 +0200 |
commit | d6b60291e38b167c7eaf246cee1bb663a36792ab (patch) | |
tree | e01c39d0a89fd9b366cd22466fd078a66a86e70e | |
parent | 846b49bdc18baecdf173f37cf42f87efc1bc555c (diff) | |
download | numpy-d6b60291e38b167c7eaf246cee1bb663a36792ab.tar.gz |
Make statement about conversion more precise.
-rw-r--r-- | doc/neps/nep-0031-uarray.rst | 4 |
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) |