[Ipython-tickets] [IPython] #146: %magic? breaks sometimes
IPython
ipython-tickets@scipy....
Sat Apr 21 13:27:06 CDT 2007
#146: %magic? breaks sometimes
----------------------+-----------------------------------------------------
Reporter: vivainio | Owner: fperez
Type: defect | Status: new
Priority: high | Milestone:
Component: ipython | Version:
Severity: critical | Keywords:
----------------------+-----------------------------------------------------
Revision [2155] (in PyColorize) caused some regression, and, occasionally,
%magic? (or any magic command) gives an exception that ends with:
{{{
C:\ipython\IPython\OInspect.py in pinfo(self, obj, oname, formatter, info,
detai
l_level)
410 defln = self.__getdef(obj,oname)
411 if defln:
--> 412 out.write(header('Definition:\t')+self.format(defln))
413
414 # Docstrings only in detail 0 mode, since source contains
them (
we
<type 'exceptions.TypeError'>: cannot concatenate 'str' and 'NoneType'
objects
}}}
I don't know yet how to reproduce it (it happens occasionally), but once
it starts happening it happens all the time. Restarting the ipython
session of course normalizes it.
format should never return "None".
This is w/ Python 0.5.1c1.
--
Ticket URL: <http://projects.scipy.org/ipython/ipython/ticket/146>
IPython <http://ipython.scipy.org>
The IPython interactive Python system
More information about the Ipython-tickets
mailing list