numpy/numpy — pull request #350 by jayvius (2012-07-12 20:21:52+00:00)
Title: Add transition code for returning view when selecting subset of fields

Add transition code for returning a view when selecting a subset of fields in a structured array (e.g. array[ ['f0', 'f2'] ]. Currently a copy is still returned - the WARN_ON_WRITE flag is set so a deprecation warning is triggered when writing to this copy.

Also update the WARN_ON_WRITE deprecation warning to include the above scenario. Currently the warning message only mentions the diagonal function.