"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 give the name of the module abc is from.


Oops! Thanks for the catch Kent.

Alan G. 


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to