Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #80872 > unrolled thread

Re: Where is inspect() located?

Started byChris Angelico <rosuav@gmail.com>
First post2014-11-16 21:15 +1100
Last post2014-11-16 21:15 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Where is inspect() located? Chris Angelico <rosuav@gmail.com> - 2014-11-16 21:15 +1100

#80872 — Re: Where is inspect() located?

FromChris Angelico <rosuav@gmail.com>
Date2014-11-16 21:15 +1100
SubjectRe: Where is inspect() located?
Message-ID<mailman.15881.1416132914.18130.python-list@python.org>
On Sun, Nov 16, 2014 at 9:12 PM, Albert Visser <albert.visser@gmail.com> wrote:
> On Sun, 16 Nov 2014 05:12:36 +0100, Igor Korot <ikorot01@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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web