Pandas might have more use for this than NumPy. Database interfaces might also have use for this.
Sturla Nathaniel Smith <n...@pobox.com> wrote: > There's some discussion on python-ideas about making it possible for python > indexing to accept kwargs, eg > > arr[1:2, foo=bar] > > Since numpy is a very heavy user of indexing which might benefit from this, > I thought I should forward it here. If we have clear use cases for such a > feature then that may strongly affect the discussion. > > I admit I can't actually think of any features this would enable for us > though... > > -n > ---------- Forwarded message ---------- > From: "Stefano Borini" <stefano.bor...@ferrara.linux.it> > Date: 2 Jul 2014 00:17 > Subject: [Python-ideas] PEP pre-draft: Support for indexing with keyword > arguments > To: "python-id...@python.org" <python-id...@python.org>, "Joseph > Martinot-Lagarde" <joseph.martinot-laga...@m4x.org> > Cc: > > Dear all, > > after the first mailing list feedback, and further private discussion with > Joseph Martinot-Lagarde, I drafted a first iteration of a PEP for keyword > arguments in indexing. The document is available here. > > <a > href="https://github.com/stefanoborini/pep-keyword/blob/master/PEP-XXX.txt">https://github.com/stefanoborini/pep-keyword/blob/master/PEP-XXX.txt</a> > > The document is not in final form when it comes to specifications. In fact, > it requires additional discussion about the best strategy to achieve the > desired result. Particular attention has been devoted to present > alternative implementation strategies, their pros and cons. I will examine > all feedback tomorrow morning European time (in approx 10 hrs), and apply > any pull requests or comments you may have. > > When the specification is finalized, or this community suggests that the > PEP is in a form suitable for official submission despite potential open > issues, I will submit it to the editor panel for further discussion, and > deploy an actual implementation according to the agreed specification for a > working test run. > > I apologize for potential mistakes in the PEP drafting and submission > process, as this is my first PEP. > > Kind Regards, > > Stefano Borini > _______________________________________________ > Python-ideas mailing list > python-id...@python.org > <a > href="https://mail.python.org/mailman/listinfo/python-ideas">https://mail.python.org/mailman/listinfo/python-ideas</a> > Code of Conduct: <a > href="http://python.org/psf/codeofconduct/">http://python.org/psf/codeofconduct/</a> > > _______________________________________________ > NumPy-Discussion mailing list > NumPy-Discussion@scipy.org > <a > href="http://mail.scipy.org/mailman/listinfo/numpy-discussion">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a> _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion