summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2018-10-31 15:04:46 +0200
committerGitHub <noreply@github.com>2018-10-31 15:04:46 +0200
commite9c631825df7b0a9c969dbfcbaf19d975e4afdde (patch)
tree60564ba8e903b101f9be235326932558491ead2a
parent7a0950649db5b83a881d8fb2bf8f95fdd885e081 (diff)
parentb59819bf2ba1cb1182d69c34f544703041571c43 (diff)
downloadnumpy-e9c631825df7b0a9c969dbfcbaf19d975e4afdde.tar.gz
Merge pull request #12279 from mattip/nep-0027-final
NEP: tweak and mark NEP 0027 as final
-rw-r--r--doc/neps/nep-0027-zero-rank-arrarys.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/neps/nep-0027-zero-rank-arrarys.rst b/doc/neps/nep-0027-zero-rank-arrarys.rst
index b2dd3a5f1..d932bb609 100644
--- a/doc/neps/nep-0027-zero-rank-arrarys.rst
+++ b/doc/neps/nep-0027-zero-rank-arrarys.rst
@@ -3,9 +3,10 @@ NEP 27 — Zero Rank Arrays
=========================
:Author: Alexander Belopolsky (sasha), transcribed Matt Picus <matti.picus@gmail.com>
-:Status: Draft
+:Status: Final
:Type: Informational
:Created: 2006-06-10
+:Resolution: https://mail.python.org/pipermail/numpy-discussion/2018-October/078824.html
.. note ::
@@ -159,7 +160,7 @@ On the other hand there are several cases that make sense for rank-zero arrays.
Ellipsis and empty tuple
~~~~~~~~~~~~~~~~~~~~~~~~
-Sasha started a `Jan 2006 discussion`_ on scipy-dev
+Alexander started a `Jan 2006 discussion`_ on scipy-dev
with the following proposal:
... it may be reasonable to allow ``a[...]``. This way
@@ -187,7 +188,7 @@ Francesc's proposal was::
There is a consensus that for a zero-rank array ``x``, both ``x[...]`` and ``x[()]`` should be valid, but the question
remains on what should be the type of the result - zero rank ndarray or ``x.dtype``?
-(Sasha)
+(Alexander)
First, whatever choice is made for ``x[...]`` and ``x[()]`` they should be
the same because ``...`` is just syntactic sugar for "as many `:` as
necessary", which in the case of zero rank leads to ``... = (:,)*0 = ()``.