What file is foo in package bar in ?

northof40 shearichard at gmail.com
Wed Aug 19 19:42:16 EDT 2009


On Aug 20, 11:06 am, Christian Heimes <li... at cheimes.de> wrote:
> northof40 wrote:
> > Given an arbitary package is there some programmatic way to 'ask' what
> > file the method/function is implemented in ?
>
> Indeed, the inspect module contains several useful functions for the
> job, for examplehttp://docs.python.org/library/inspect.html#inspect.getfile
>
> Christian

That's really great thanks - just what I was after.

regards

R.




More information about the Python-list mailing list