Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #4165
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <kwatford@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'wed,': 0.04; '(of': 0.07; 'initialize': 0.07; '"""': 0.09; 'be:': 0.09; 'executed': 0.09; 'igor': 0.09; 'namespace': 0.09; 'subject:language': 0.09; 'subject:missing': 0.09; 'subject:reference': 0.09; 'sys,': 0.09; 'pm,': 0.11; 'wrote:': 0.14; 'identifier': 0.16; 'necessary;': 0.16; 'occurs).': 0.16; 'repeatedly.': 0.16; 'subject:skip:d 10': 0.18; 'fine': 0.18; '27,': 0.19; 'once,': 0.19; 'modules': 0.20; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.20; 'header:In-Reply- To:1': 0.22; 'cc:addr:python-list': 0.22; '(without': 0.23; 'module,': 0.23; 'subject: -- ': 0.25; 'define': 0.26; 'received:209.85.161.46': 0.26; 'received:mail- fx0-f46.google.com': 0.26; 'statement': 0.26; 'sender:addr:gmail.com': 0.27; 'message-id:@mail.gmail.com': 0.28; 'looks': 0.28; 'received:209.85.161': 0.29; 'cc:addr:python.org': 0.31; 'exists,': 0.31; 'os,': 0.31; 'performs': 0.31; 'second': 0.31; 'import': 0.32; 'url:docs': 0.33; 'module': 0.33; "isn't": 0.34; 'list.': 0.35; 'missing': 0.36; 'two': 0.37; 'received:209.85': 0.37; 'url:python': 0.37; 'apr': 0.38; 'received:google.com': 0.38; 'url:org': 0.38; 'comes': 0.39; 'where': 0.39; 'received:209': 0.39; 'form,': 0.40; 'would': 0.40; 'header:Received:5': 0.40; '2011': 0.62; 'subject:think': 0.84; 'subject:found': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:from :date:x-google-sender-auth:message-id:subject:to:cc:content-type; bh=i70SLVid1R9tlAsz1Xh/TtNukYYyQrIW/BR+HFuUHPE=; b=lw6E1ycApJ0Huq1wu5fjFywYv8jAZCbhTeaCoSWRdlGpDKYYMFUFPksIvmdmnE0F6Z cPxsTrwGb53f3VFEgDYOgdnJ4P0ocXx/Jyz/9Q7vjw1C/gQr1axapcJM8EE0uQh6ZPQf 8xDtsCl9PBqx1DUOUM5Nfi6jYyQQNNBriDoLU= |
| DomainKey-Signature | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=XWYKIF17TzcPdVYAkfFzSStmk6aapc1NagdpfS/IRDqC78guQaVYNcHROb0aT8eanL dlBFGKYzxAcVyW1Ju0l4g5Eyw1p5AXEgSSCBnn7a1O4Gc3+X7u9tY5yrcCcz6wAJXKPh JHQ9UexZq8CHNBrrtGDj7hWWxYj/LKms0LrvE= |
| MIME-Version | 1.0 |
| Sender | kwatford@gmail.com |
| In-Reply-To | <a24d01a0-35bb-42c3-8aa5-36242e952694@l18g2000yql.googlegroups.com> |
| References | <a24d01a0-35bb-42c3-8aa5-36242e952694@l18g2000yql.googlegroups.com> |
| From | Ken Watford <kwatford+python@gmail.com> |
| Date | Wed, 27 Apr 2011 17:21:13 -0400 |
| X-Google-Sender-Auth | kdXgMac26RuVO5bORRcQWBNpTXo |
| Subject | Re: I think I found a mistake in the official language reference documentation -- or I am missing somethig??? |
| To | Igor Soares <ibp.srs@gmail.com> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.911.1303939295.9059.python-list@python.org> (permalink) |
| Lines | 28 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1303939295 news.xs4all.nl 41114 [::ffff:82.94.164.166]:52577 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:4165 |
Show key headers only | View raw
On Wed, Apr 27, 2011 at 4:02 PM, Igor Soares <ibp.srs@gmail.com> wrote: > Reading the section "6.11. The import statement" > http://docs.python.org/py3k/reference/simple_stmts.html#the-import-statement > > I found: > """ > Import statements are executed in two steps: (1) find a module, and > initialize it if necessary; (2) define a name or names in the local > namespace (of the scope where the import statement occurs). > (...) > The first form (without from) repeats these steps for each identifier > in the list. The form with from performs step (1) once, and then > performs step (2) repeatedly. > """ > In the last sentence, isn't it the opposite? > With the "from" form it would find/initialize all the modules and > define just the name after "from". > Or am I missing something????? Judging only by what you've quoted, the forms would be: 1) import os, sys, glob 2) from os.path import exists, split, join In the first form, one or more modules come after the 'import'. In the second form, a single module comes after the 'from', and then multiple names from within that module come after the 'import'. Looks fine to me.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
I think I found a mistake in the official language reference documentation -- or I am missing somethig??? Igor Soares <ibp.srs@gmail.com> - 2011-04-27 13:02 -0700
Re: I think I found a mistake in the official language reference documentation -- or I am missing somethig??? Ken Watford <kwatford+python@gmail.com> - 2011-04-27 17:21 -0400
Re: I think I found a mistake in the official language reference documentation -- or I am missing somethig??? Igor Soares <ibp.srs@gmail.com> - 2011-04-27 15:36 -0700
Re: I think I found a mistake in the official language reference documentation -- or I am missing somethig??? MRAB <python@mrabarnett.plus.com> - 2011-04-28 01:29 +0100
Re: I think I found a mistake in the official language reference documentation -- or I am missing somethig??? Igor Soares <ibp.srs@gmail.com> - 2011-04-28 11:00 -0700
csiph-web