[IPython-user] Printing the doc of the class object instead of the object instance
Ville Vainio
vivainio at gmail.com
Mon Jun 26 13:32:28 CDT 2006
On 6/22/06, David Huard <david.huard at gmail.com> wrote:
> I modified it to patch _inspect instead of pinfo, so it applies directly to
> pdoc and such.
Could you handle the parent searching by changing Magic._ofind()
instead of doing the getattr stuff manually? You could add 'parent'
attribute to the return dict:
return {'found':found, 'obj':obj, 'namespace':ospace,
'ismagic':ismagic, 'isalias':isalias, 'parent' : objparent}
and store the parent in for loop at line 211.
--
Ville Vainio - vivainio.googlepages.com
vainio.blogspot.com - g[mail | talk]='vivainio'
More information about the IPython-user
mailing list