[Python-bugs-list] [Bug #117686] IDLE doesn't display long arrays well

noreply@sourceforge.net noreply@sourceforge.net
Wed, 25 Oct 2000 14:14:31 -0700


Bug #117686, was updated on 2000-Oct-25 07:25
Here is a current snapshot of the bug.

Project: Python
Category: IDLE
Status: Closed
Resolution: Later
Bug Group: Feature Request
Priority: 3
Summary: IDLE doesn't display long arrays well

Details: A long array, such as from Numeric Python is displayed
as
<array 3434 343421 4324234 .... 324234 34234>,
with part of the array replaced with elipses.

Often, this is enough information,
but unfortunately not always.  IDLE cannot tell you
how many items the array had (even approximately),
and it is impossible to see the complete output
or repr().  This is a bug, as a stack viewer ought to
let you see what is on the stack.

I'd suggest that long reprs() that get truncated this way
ought to be viewable in their entirety, perhaps by clicking
on them.

A fancier option would be to have IDLE look for a getitem()
attribute, and allow anything that has getitem() (or perhaps
getitem() and len()) to be displayed in the same format
that build-in python arrays are displayed in.

Follow-Ups:

Date: 2000-Oct-25 14:14
By: gvanrossum

Comment:
Good idea. I'll add this to IDLE's TODO list, and close the bug report.
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=117686&group_id=5470