Hi Kent,
Thank you
I was able to find it in the end.
It was at the bottom of the file I was editing
Lance
Kent Johnson wrote:
> Lance Haig wrote:
>> I am debugging a script that was written by someone else and I was
>> wondering if there is a way to determine where a function or module
>
Lance Haig wrote:
> I am debugging a script that was written by someone else and I was
> wondering if there is a way to determine where a function or module is
> imported from
You can use the __file__ attribute of a module:
In [9]: csv.__file__
Out[9]:
'/Library/Frameworks/Python.framework/Vers
"Lance Haig" <[EMAIL PROTECTED]> wrote
>I am debugging a script that was written by someone else and I was
> wondering if there is a way to determine where a function or module
> is
> imported from
>>> import time
>>> print time
>>> time.__file__
'/usr/lib/python2.4/lib-dynload/time.dll'
>>>
H
I am debugging a script that was written by someone else and I was
wondering if there is a way to determine where a function or module is
imported from
Thanks
Lance
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor