File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,10 @@ NEP 27 — Zero Rank Arrays
3
3
=========================
4
4
5
5
:Author: Alexander Belopolsky (sasha), transcribed Matt Picus <matti.picus@gmail.com>
6
- :Status: Draft
6
+ :Status: Final
7
7
:Type: Informational
8
8
:Created: 2006-06-10
9
+ :Resolution: https://mail.python.org/pipermail/numpy-discussion/2018-October/078824.html
9
10
10
11
.. note ::
11
12
@@ -159,7 +160,7 @@ On the other hand there are several cases that make sense for rank-zero arrays.
159
160
Ellipsis and empty tuple
160
161
~~~~~~~~~~~~~~~~~~~~~~~~
161
162
162
- Sasha started a `Jan 2006 discussion `_ on scipy-dev
163
+ Alexander started a `Jan 2006 discussion `_ on scipy-dev
163
164
with the following proposal:
164
165
165
166
... it may be reasonable to allow ``a[...] ``. This way
@@ -187,7 +188,7 @@ Francesc's proposal was::
187
188
There is a consensus that for a zero-rank array ``x ``, both ``x[...] `` and ``x[()] `` should be valid, but the question
188
189
remains on what should be the type of the result - zero rank ndarray or ``x.dtype ``?
189
190
190
- (Sasha )
191
+ (Alexander )
191
192
First, whatever choice is made for ``x[...] `` and ``x[()] `` they should be
192
193
the same because ``... `` is just syntactic sugar for "as many `: ` as
193
194
necessary", which in the case of zero rank leads to ``... = (:,)*0 = () ``.
You can’t perform that action at this time.
0 commit comments