[NumPy-Tickets] [NumPy] #1970: have array list number of omitted items rather than ellipsis
NumPy Trac
numpy-tickets@scipy....
Mon Oct 31 14:09:57 CDT 2011
#1970: have array list number of omitted items rather than ellipsis
-------------------------+--------------------------------------------------
Reporter: AlanFrankel | Owner: somebody
Type: enhancement | Status: new
Priority: normal | Milestone: Unscheduled
Component: Other | Version: 1.6.0
Keywords: |
-------------------------+--------------------------------------------------
Comment(by rgommers):
It's going to be a difficult sell to change the default behavior, because
it will break doctests. I like the idea though. You could bring it up on
the mailing list.
I don't see a problem with adding an option for this. Changes that would
be needed:
- change set_printoptions and get_printoptions to toggle this behavior.
- in _formatArray add the actual support, see the {{{summary_insert}}}
argument. Note that when the array dimension is larger than 1, this is a
recursive function. The actual size should be figured out in the {{{if
rank == 1}}} block.
- also make a change in array2string similar to set_printoptions.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1970#comment:2>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list