You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run %pdoc on a class of mine I get the following TypeError and afterwards my ipython shell is messed up, e.g. image.pgs.GPSPlot? prints the same info twice.
/Users/deil/github/ipython/IPython/core/interactiveshell.pyc in magic(self, arg_s, next_input)
1892 self._magic_locals = sys._getframe(1).f_locals
1893 with self.builtin_trap:
-> 1894 result = fn(magic_args)
1895 # Ensure we're not keeping object references around:
1896 self._magic_locals = {}
/Users/deil/github/ipython/IPython/core/magic.pyc in magic_pdoc(self, parameter_s, namespaces)
585 If the given object is a class, it will print both the class and the
586 constructor docstrings."""
--> 587 self._inspect('pdoc',parameter_s, namespaces)
588
589 def magic_psource(self, parameter_s='', namespaces=None):
When I run %pdoc on a class of mine I get the following TypeError and afterwards my ipython shell is messed up, e.g. image.pgs.GPSPlot? prints the same info twice.
In [1]: import image.gps
In [2]: %pdoc image.gps.GPSPlot
TypeError Traceback (most recent call last)
/Users/deil/ in ()
----> 1 get_ipython().magic(u"pdoc image.gps.GPSPlot")
/Users/deil/github/ipython/IPython/core/interactiveshell.pyc in magic(self, arg_s, next_input)
1892 self._magic_locals = sys._getframe(1).f_locals
1893 with self.builtin_trap:
-> 1894 result = fn(magic_args)
1895 # Ensure we're not keeping object references around:
1896 self._magic_locals = {}
/Users/deil/github/ipython/IPython/core/magic.pyc in magic_pdoc(self, parameter_s, namespaces)
585 If the given object is a class, it will print both the class and the
586 constructor docstrings."""
--> 587 self._inspect('pdoc',parameter_s, namespaces)
588
589 def magic_psource(self, parameter_s='', namespaces=None):
/Users/deil/github/ipython/IPython/core/interactiveshell.pyc in _inspect(self, meth, oname, namespaces, *_kw)
1374 formatter = format_screen if info.ismagic else None
1375 if meth == 'pdoc':
-> 1376 pmethod(info.obj, oname, formatter)
1377 elif meth == 'pinfo':
1378 pmethod(info.obj, oname, formatter, info, *_kw)
/Users/deil/github/ipython/IPython/core/oinspect.pyc in pdoc(self, obj, oname, formatter)
307 indent(ds),
308 head("Constructor Docstring:"),
--> 309 indent(init_ds)])
310 elif (type(obj) is types.InstanceType or isinstance(obj,object))
311 and hasattr(obj,'call'):
TypeError: sequence item 3: expected string, NoneType found
{'commit_hash': '2eb3a49',
'commit_source': 'repository',
'ipython_path': '/Users/deil/github/ipython/IPython',
'ipython_version': '0.11.dev',
'os_name': 'posix',
'platform': 'Darwin-10.8.0-i386-64bit',
'sys_executable': '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python',
'sys_platform': 'darwin',
'sys_version': '2.7.2 (default, Jun 25 2011, 11:09:57) \n[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]'}
I am using the iTerm 0.10 shell.
The text was updated successfully, but these errors were encountered: