Kegan wrote: > I use iPython installed from macport. When I am in the iPython shell, > I do the following: > > > In [8]: from datetime import timedelta > > In [9]: timedelta?? > Type: type > Base Class: <type 'type'> > String Form: <type 'datetime.timedelta'> > Namespace: Interactive > File: /opt/local/Library/Frameworks/Python.framework/ > Versions/2.5/lib/python2.5/lib-dynload/datetime.so > Docstring [source file open failed]: > Difference between two datetime values. > > > Lets say I want more information about timedelta right at the shell > (as oppose lookup at Python Doc). Can I somehow link the actual Python > source code to iPython so that it can be accessed in that way? > > I am using macport. Please help.
You may want to try: import pydoc b = pydoc.render_doc(timedelta) print b Study the pydoc.py lib file, should be of some help. Regards, P. Kaminski -- http://mail.python.org/mailman/listinfo/python-list