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


Groups > comp.lang.python > #80872

Re: Where is inspect() located?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; '16,': 0.03; 'anyway.': 0.05; 'importerror:': 0.07; 'cc:addr:python-list': 0.11; 'python': 0.11; 'windows': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'igor': 0.16; 'iirc': 0.16; 'missing?': 0.16; 'wrote:': 0.18; 'module': 0.19; 'import': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply- To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; '"",': 0.31; '+0100,': 0.31; 'file': 0.32; 'says': 0.33; 'url:python': 0.33; '(most': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'located': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'thank': 0.38; 'nov': 0.38; 'url:library': 0.38; 'pm,': 0.38; 'recent': 0.39; 'you.': 0.62; 'subject:Where': 0.84; 'albert': 0.91; 'to:none': 0.92
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=lk36nO4FBW+/FsYYIhS6hmTvvxCEXcIqLu2O8UTbnbs=; b=eAwps315oh0HLERG2wYnXU3zuw6BulztL5mlt6OlBmg+oH2nprjB9CzyFCmoIyrKGj eRfVh5coDlZr4bztbOrRwasfH1uCQ0HM7bP0E/GCuzcadSmlBerlzxbxAEV55J22uAcR C0OQl6bjjkiMDsvIWmIFkFscg7bN5utT04P8CxTwnmpNNDSlX892TVZj56+H7Wkq1kXw ZQ7OInpV/s02so4HVFDqC8E7S1CQ5aujj9JW5c14GW/DWWVaKaic2ZFMA9GwfNtgc8uQ V16IjgH9D+L7XwxPbMluzH7XaoK4WbcMz0Q5TmRas7a1wjo1CMThEpoRuv5+r5MvoHAC kuBg==
MIME-Version 1.0
X-Received by 10.50.79.135 with SMTP id j7mr18515833igx.14.1416132911455; Sun, 16 Nov 2014 02:15:11 -0800 (PST)
In-Reply-To <op.xpexbo1a6qxdhu@localhost>
References <CA+FnnTw0+kB2AJmUKK9o_WO18TxA5E52L4UgDRo=LnYQcmOkoQ@mail.gmail.com> <op.xpexbo1a6qxdhu@localhost>
Date Sun, 16 Nov 2014 21:15:11 +1100
Subject Re: Where is inspect() located?
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.15881.1416132914.18130.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1416132914 news.xs4all.nl 2886 [2001:888:2000:d::a6]:58548
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:80872

Show key headers only | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web