diff options
author | Ralf Gommers <ralf.gommers@gmail.com> | 2020-04-11 21:13:37 +0200 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@gmail.com> | 2020-04-11 21:31:50 +0200 |
commit | 45b457e6bb298f4eb5eb2a2dab1d24b325c02703 (patch) | |
tree | 75af00bb52417253c79542be5f3e02ac4b3d8532 | |
parent | 9e33487199500876abb128ce43001e9987f43768 (diff) | |
download | numpy-45b457e6bb298f4eb5eb2a2dab1d24b325c02703.tar.gz |
DOC: fix a NEP reference, number was incorrect (36 -> 35); update link
-rw-r--r-- | doc/neps/nep-0037-array-module.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/neps/nep-0037-array-module.rst b/doc/neps/nep-0037-array-module.rst index 10ff7260b..b3471e227 100644 --- a/doc/neps/nep-0037-array-module.rst +++ b/doc/neps/nep-0037-array-module.rst @@ -58,7 +58,7 @@ There are two broad ways in which NEP-18 has fallen short of its goals: - **Array creation** routines (e.g., ``np.arange`` and those in ``np.random``) need some other mechanism for indicating what type of - arrays to create. `NEP 36 <https://github.com/numpy/numpy/pull/14715>`_ + arrays to create. `NEP 35 <https://numpy.org/neps/nep-0035-array-creation-dispatch-with-array-function.html>`_ proposed adding optional ``like=`` arguments to functions without existing array arguments. However, we still lack any mechanism to override methods on objects, such as those needed by @@ -439,7 +439,7 @@ input arguments: class ArrayModule: def __init__(self, prefer_gpu): self.prefer_gpu = prefer_gpu - + def __getattr__(self, name): import base_module base_func = getattr(base_module, name) |