Re: [Tutor] function and module

2006-12-08 Thread Alan Gauld
"Kent Johnson" <[EMAIL PROTECTED]> wrote >> There are a couple of possibilities. >> 1) if you can import the moduile into a >>> propmpt you could >> ask abc where it's from. > print abc.__file__ should work > > __file__ is a module attribute, not a function attribute. > abc.__module__ > will

Re: [Tutor] function and module

2006-12-08 Thread Kent Johnson
Alan Gauld wrote: > There are a couple of possibilities. > 1) if you can import the moduile into a >>> propmpt you could > ask abc where it's from. print abc.__file__ should work __file__ is a module attribute, not a function attribute. abc.__module__ will give the name of the module abc is

Re: [Tutor] function and module

2006-12-08 Thread Alan Gauld
"linda.s" <[EMAIL PROTECTED]> wrote >I am reading a sample code and want to figure out where a function > (for instance, abc) is from. > There are many lines such as > from XXX import * This is one of the chief reasons why 'from x import *' is bad practice. > Is there a way not going through