console command to get the path of a function

Terry Reedy tjreedy at udel.edu
Sun Dec 20 15:02:12 EST 2009


On 12/20/2009 7:45 AM, mattia wrote:
> Hi all, is there a way in the python shell to list the path of a library
> function (in order to look at the source code?).

On Windows and I believe other systems, for the stdlib, 'import x' 
imports .../Pythonx.y/Lib/x





More information about the Python-list mailing list