8000 DOC: discard repeated words in NEPs (#20816) · rjeb/numpy@f5e74cb · GitHub
[go: up one dir, main page]

Skip to content

Commit f5e74cb

Browse files
DOC: discard repeated words in NEPs (numpy#20816)
1 parent c6d95f5 commit f5e74cb

5 files changed

+9
-9
lines changed

doc/neps/nep-0022-ndarray-duck-typing-overview.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ partial duck arrays. We've been guilty of this ourself.
9797

9898
At this point though, we think the best general strategy is to focus
9999
our efforts primarily on supporting full duck arrays, and only worry
100-
about partial duck arrays as much as we need to to make sure we don't
100+
about partial duck arrays as much as we need to make sure we don't
101101
accidentally rule them out for no reason.
102102

103103
Why focus on full duck arrays? Several reasons:

doc/neps/nep-0023-backwards-compatibility.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ Discussion
327327

328328
- `Mailing list discussion on the first version of this NEP in 2018 <https://mail.python.org/pipermail/numpy-discussion/2018-July/078432.html>`__
329329
- `Mailing list discussion on the Dec 2020 update of this NEP <https://mail.python.org/pipermail/numpy-discussion/2020-December/081358.html>`__
330-
- `PR with review comments on the the Dec 2020 update of this NEP <https://github.com/numpy/numpy/pull/18097>`__
330+
- `PR with review comments on the Dec 2020 update of this NEP <https://github.com/numpy/numpy/pull/18097>`__
331331

332332

333333
References and Footnotes

doc/neps/nep-0041-improved-dtype-support.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ cannot describe casting for such parametric datatypes implemented outside of Num
7474
This additional functional 8000 ity for supporting parametric datatypes introduces
7575
increased complexity within NumPy itself,
7676
and furthermore is not available to external user-defined datatypes.
77-
In general the concerns of different datatypes are not well well-encapsulated.
77+
In general the concerns of different datatypes are not well-encapsulated.
7878
This burden is exacerbated by the exposure of internal C structures,
7979
limiting the addition of new fields
8080
(for example to support new sorting methods [new_sort]_).

doc/neps/nep-0042-new-dtypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ user-defined DType::
302302
class UserDtype(dtype): ...
303303

304304
one can do ``np.ndarray[UserDtype]``, keeping annotations concise in
305-
that case without introducing boilerplate in NumPy itself. For a user
305+
that case without introducing boilerplate in NumPy itself. For a
306306
user-defined scalar type::
307307

308308
class UserScalar(generic): ...

doc/neps/nep-0043-extensible-ufuncs.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ the inner-loop operates on.
804804
This is necessary information for parametric dtypes since for example comparing
805805
two strings requires knowing the length of both strings.
806806
The ``Context`` can also hold potentially useful information such as the
807-
the original ``ufunc``, which can be helpful when reporting errors.
807+
original ``ufunc``, which can be helpful when reporting errors.
808808

809809
In principle passing in Context is not necessary, as all information could be
810810
included in ``innerloop_data`` and set up in the ``get_loop`` function.
@@ -948,7 +948,7 @@ This wrapped ``ArrayMethod`` will have two additional methods:
948948
convert this to ``float64 + float64``.
949949

950950
* ``wrap_outputs(Tuple[DType]: input_descr) -> Tuple[DType]`` replacing the
951-
resolved descriptors with with the desired actual loop descriptors.
951+
resolved descriptors with the desired actual loop descriptors.
952952
The original ``resolve_descriptors`` function will be called between these
953953
two calls, so that the output descriptors may not be set in the first call.
954954
In the above example it will use the ``float64`` as returned (which might
@@ -987,8 +987,8 @@ A different use-case is that of a ``Unit(float64, "m")`` DType, where
987987
the numerical type is part of the DType parameter.
988988
This approach is possible, but will require a custom ``ArrayMethod``
989989
which wraps existing loops.
990-
It must also always require require two steps of dispatching
991-
(one to the ``Unit`` DType and a second one for the numerical type).
990+
It must also always require two steps of dispatching (one to the ``Unit``
991+
DType and a second one for the numerical type).
992992

993993
Furthermore, the efficient implementation will require the ability to
994994
fetch and reuse the inner-loop function from another ``ArrayMethod``.
@@ -1296,7 +1296,7 @@ of the current ufunc machinery (as well as casting).
12961296

12971297
The implementation unfortunately will require large maintenance of the
12981298
UFunc machinery, since both the actual UFunc loop calls, as well as the
1299-
the initial dispatching steps have to be modified.
1299+
initial dispatching steps have to be modified.
13001300

13011301
In general, the correct ``ArrayMethod``, also those returned by a promoter,
13021302
will be cached (or stored) inside a hashtable for efficient lookup.

0 commit comments

Comments
 (0)
0