[Python-modules-team] Bug#563980: ipython: NameError exception after disabling %Pprint
Yaroslav Halchenko
debian at onerussian.com
Wed Jan 6 20:30:58 UTC 2010
Package: ipython
Version: 0.10-1
Severity: normal
$> ipython
Python 2.5.4 (r254:67916, Nov 19 2009, 22:14:20)
Type "copyright", "credits" or "license" for more information.
IPython 0.10 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: from IPython.Extensions import ipy_pretty
In [2]: ipy_pretty.activate()
In [3]: %Pprint
Pretty printing has been turned OFF
In [4]: 1
Out[4]: ---------------------------------------------------------------------------
NameError Traceback (most recent call last)
/home/yoh/proj/pymvpa/pymvpa/<ipython console> in <module>()
/usr/lib/pymodules/python2.5/IPython/Prompts.pyc in __call__(self, arg)
550
551 # and now call a possibly user-defined print mechanism
--> 552 manipulated_val = self.display(arg)
553
554 # user display hooks can change the variable to be stored in
/usr/lib/pymodules/python2.5/IPython/Prompts.pyc in _display(self, arg)
576 return IPython.generics.result_display(arg)
577 except TryNext:
--> 578 return self.shell.hooks.result_display(arg)
579
580 # Assign the default display method:
/usr/lib/pymodules/python2.5/IPython/hooks.pyc in __call__(self, *args, **kw)
139 #print "prio",prio,"cmd",cmd #dbg
140 try:
--> 141 ret = cmd(*args, **kw)
142 return ret
143 except ipapi.TryNext, exc:
/usr/lib/pymodules/python2.5/IPython/Extensions/ipy_pretty.pyc in pretty_result_display(self, arg)
43 print >>Term.cout, out
44 else:
---> 45 raise TryNext
46
47
NameError: global name 'TryNext' is not defined
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (901, 'unstable'), (900, 'testing'), (300, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.31-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages ipython depends on:
ii python 2.5.4-5 An interactive high-level object-o
ii python-pexpect 2.3-1 Python module for automating inter
ii python-support 1.0.3 automated rebuilding support for P
Versions of packages ipython recommends:
ii global 5.7.1-1 Source code search and browse tool
ii python [python-ctypes] 2.5.4-5 An interactive high-level object-o
ii python-ctypes 1.0.2-6 Python package to create and manip
ii python-foolscap 0.4.2+dfsg-1 object-capability-based RPC system
ii python-openssl 0.9-1 Python wrapper around the OpenSSL
ii python-twisted-core 8.2.0-3 Event-based framework for internet
ii python-wxgtk2.8 2.8.7.1-2+b1 wxWidgets Cross-platform C++ GUI t
pn python-zope.interface <none> (no description available)
Versions of packages ipython suggests:
ii libjs-jquery 1.3.3-2 JavaScript library for dynamic web
ii python-gobject 2.16.1-1 Python bindings for the GObject li
ii python-gtk2 2.16.0-1 Python bindings for the GTK+ widge
ii python-matplotlib 0.99.0-1 Python based plotting system in a
ii python-numpy 1:1.3.0-3 Numerical Python adds a fast array
ii python-profiler 2.5.2-1 deterministic profiling of any Pyt
ii python-qt4 4.6-1 Python bindings for Qt4
-- no debconf information
More information about the Python-modules-team
mailing list