iPython help, Docstring [source file open failed]

R. David Murray rdmurray at bitdance.com
Wed Apr 15 02:35:43 CEST 2009

Kegan <kegan at kegan.info> 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?

Notice that the filetype is '.so'.  That means it is a compiled
C module, so there is no python source to view.

R. David Murray             http://www.bitdance.com

More information about the Python-list mailing list