"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
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
"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