Issues in magic_whos code

Bug #509043 reported by Gokhan Sever
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IPython
Triaged
Low
Fernando Perez

Bug Description

1-) In .../IPython/core/magic.py looking at the magic_whos code:

You still mention of Numeric. Shouldn't these instances be cleared both in code and documentation providing that you drop support for Python 2.4 and below?

2-) Lines 966-967 in magic.py:

        # for these types, show len() instead of data:
        seq_types = [types.DictType,types.ListType,types.TupleType]

with a sample code:

In [18]: ll = range(10)

In [19]: whos
Variable Type Data/Info
----------------------------------------
a InteractiveShell <InteractiveShell('ipython.component0')>
b NoneType None
ll list [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

From this, either the comment or the output of the whos needs to be updated.

Python version: 0.11.bzr.r1346
Platform info : os.name -> posix, sys.platform -> linux2
                     : Linux-2.6.31.9-174.fc12.i686.PAE-i686-with-fedora-12-Constantine
Python info : 2.6.2 (r262:71600, Aug 21 2009, 12:22:21) [GCC 4.4.1 20090818 (Red Hat 4.4.1-6)]

Tags: numeric whos
Changed in ipython:
status: New → Triaged
assignee: nobody → Fernando Perez (fdo.perez)
milestone: none → 0.11
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.