Where is inspect() located?

Chris Angelico rosuav at gmail.com
Sun Nov 16 11:15:11 CET 2014


On Sun, Nov 16, 2014 at 9:12 PM, Albert Visser <albert.visser at gmail.com> wrote:
> On Sun, 16 Nov 2014 05:12:36 +0100, Igor Korot <ikorot01 at gmail.com> wrote:
>
>>>>> import lib
>>
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in <module>
>> ImportError: No module named lib
>>>>>
>>>>>
>>
>> In the https://docs.python.org/2/library/inspect.html, it says it is
>> located in Lib/inspect.py.
>>
>> What am I missing? Or its only for 3.x?
>>
>> Thank you.
>
>
> Windows may not be case-sensitive, but Python is iirc

And "import lib" would look for Lib/lib.py anyway.

ChrisA



More information about the Python-list mailing list