[Numpy-discussion] Fwd: [Python-ideas] PEP pre-draft: Support for indexing with keyword arguments

Sebastian Berg sebastian at sipsolutions.net
Fri Jul 4 04:39:33 EDT 2014


On Fr, 2014-07-04 at 08:03 +0200, Todd wrote:
> 
> On Jul 2, 2014 10:49 AM, "Nathaniel Smith" <njs at pobox.com> wrote:
> >
> > I admit I can't actually think of any features this would enable for
> us though...
> 
> Could it be useful for structured arrays?

Not sure how. The named columns seem like a decent point to me. For
toggling indexing options, I wonder if usually function calls or
temporary object construction (at least for numpy) ala:

arr.ox[...]
arr.indx(option)[...]

are not better in any case.

- Sebastian

> 
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20140704/51606013/attachment.sig>


More information about the NumPy-Discussion mailing list