[Numpy-svn] r8461 - trunk/doc/neps

numpy-svn at scipy.org numpy-svn at scipy.org
Thu Jun 10 13:45:09 EDT 2010


Author: oliphant
Date: 2010-06-10 12:45:09 -0500 (Thu, 10 Jun 2010)
New Revision: 8461

Added:
   trunk/doc/neps/structured_array_extensions.txt
Log:
Add pre-nep for a copule of structured_array_extensions.

Added: trunk/doc/neps/structured_array_extensions.txt
===================================================================
--- trunk/doc/neps/structured_array_extensions.txt	                        (rev 0)
+++ trunk/doc/neps/structured_array_extensions.txt	2010-06-10 17:45:09 UTC (rev 8461)
@@ -0,0 +1,9 @@
+
+1.  Create with-style context that makes "named-columns" available as names in the namespace.
+
+   with np.columns(array):
+        price = unit * quantityt
+
+
+2. Allow structured arrays to be sliced by their column  (i.e. one additional indexing option for structured arrays) so that a[:4, 'foo':'bar']  would be allowed.
+




More information about the Numpy-svn mailing list