Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #78034
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1a.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.004 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'importing': 0.05; 'accelerator': 0.09; 'imported': 0.09; 'namespace': 0.09; 'subject:files': 0.09; 'api': 0.11; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'imports': 0.16; 'namespace,': 0.16; 'overriding': 0.16; 'pythonic': 0.16; 'subject:program': 0.16; 'wrote:': 0.18; 'module': 0.19; 'import': 0.22; 'cc:addr:python.org': 0.22; 'documented': 0.24; 'tend': 0.24; '(or': 0.24; 'cc:2**0': 0.24; '(for': 0.26; 'header:In-Reply-To:1': 0.27; 'specifically': 0.29; 'chris': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'that.': 0.31; 'accidentally': 0.31; 'changed.': 0.31; 'everywhere': 0.31; 'sep': 0.31; 'fri,': 0.33; 'except': 0.35; 'case,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'subject:data': 0.36; 'doing': 0.36; 'example,': 0.37; 'either': 0.39; 'such': 0.63; 'more': 0.64; 'special': 0.74; 'stat': 0.84; 'thing,': 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=s8ufK/YgGmrFAEalqvEJ/a2K0n+8vHNTqJIj4TfRXUc=; b=lP+BSmb5wf3M05LOk/jxBAGq44t/2DgwOU2AL3grB3DHKQnvgDu1TxBLd8Fp2f1cW/ hHMA3gBcGup2X9N22Xm/5RwrhO8drlWuNwYBRdkiNOFGOokGMIkLHCQ4JDC14K1SbiRN 9FUHnl80qr1mqKBtBT44lTfy/4bmyNguRWHub8Q3uPR8ZTahrOLVpiQ+cDRZQzA5v3rE Logr6VDfWpOkWbwSga2n9SZ1Q2djFG1I0FhGmxiUzprwSb82wuj/X7Dg9xResEPqvUTh M38TdjymYltKWc+rcJuJZcccNB6bfXGhx03hXHOzKxN57jewb5paA332b+RHP+z9+hNF ij6w== |
| MIME-Version | 1.0 |
| X-Received | by 10.50.176.202 with SMTP id ck10mr50294023igc.2.1411066254120; Thu, 18 Sep 2014 11:50:54 -0700 (PDT) |
| In-Reply-To | <CALvWhxvvtyH0Us8+9eg+JBcooUvq1kiTVqmfU0rg1XTtcJGmVg@mail.gmail.com> |
| References | <CALDD_==AYbQNPu29jRoLFp8WPZaZ9mMs79334-m_z3dgdxZRJw@mail.gmail.com> <CALvWhxvvtyH0Us8+9eg+JBcooUvq1kiTVqmfU0rg1XTtcJGmVg@mail.gmail.com> |
| Date | Fri, 19 Sep 2014 04:50:54 +1000 |
| Subject | Re: program to generate data helpful in finding duplicate large files |
| 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.14117.1411066256.18130.python-list@python.org> (permalink) |
| Lines | 19 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1411066256 news.xs4all.nl 2886 [2001:888:2000:d::a6]:47179 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:78034 |
Show key headers only | View raw
On Fri, Sep 19, 2014 at 4:45 AM, Chris Kaynor <ckaynor@zindagigames.com> wrote: >> from stat import * > > > Generally, from import * imports are discouraged as they tend to populate > your namespace and have issues with accidentally overriding imported > functions/variables. Generally, its more Pythonic to use the other imports > (or import as) and reference with the namespace, as you are doing everywhere > else. The main case where from import * is recommended is API imports (for > example, importing the API of one module into another, such as for > inter-platform, inter-version, or accelerator support). > I was going to say the same thing, except that this module specifically is documented as recommending that. I still don't like "import *", but either this is a special case, or the docs need to be changed. ChrisA
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: program to generate data helpful in finding duplicate large files Chris Angelico <rosuav@gmail.com> - 2014-09-19 04:50 +1000 Re: program to generate data helpful in finding duplicate large files Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-09-19 11:08 +1200
csiph-web