Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.022 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'importing': 0.05; 'sys': 0.07; 'collier': 0.09; 'exit': 0.09; 'recommends': 0.09; '-tkc': 0.16; 'cleanly': 0.16; 'pep8': 0.16; 'subject:import': 0.16; 'wrote:': 0.18; 'bit': 0.19; '>>>': 0.22; 'import': 0.22; 'header :User-Agent:1': 0.23; 'tend': 0.24; 'sort': 0.25; 'this:': 0.26; 'skip:" 20': 0.27; 'header:In-Reply-To:1': 0.27; 'tim': 0.29; "i'm": 0.30; 'code': 0.31; 'received:10.0.0': 0.31; 'chase': 0.31; 'everywhere': 0.31; 'os,': 0.31; 'johnson': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; "i'll": 0.36; 'received:10.0': 0.36; 'so,': 0.37; 'list': 0.37; 'received:10': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'read': 0.60; 'dave': 0.60; 'reach': 0.63; 'more': 0.64; 'advantages': 0.68; 'further,': 0.74; 'comment.': 0.84; 'angel': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=TBRb5ESV+5d4tupOqO1UV9C+7Pi3u/H/L/anrQPA/9Q=; b=ZMCPd1IfaqknvJQovGN70SyyOoWJhJrPYyC0yluxjF/Ai6CynbC+FPPIibW1cJTT+a 9NyyZ+Qtelc0tzYMR/aRjjLlmUoTKMPBJImNrILqECf8wVVFo6uHS6ij+AsguxpSXbVd K4boG154eYpwbKtgSQnlyPx6iHKw1aX2VW1aScr9ewseDGPmZBJKuYxpt2BlnbQvU8Jh gcL9dAZp8qBOcLCl3qeUTdswhxnNR+9ilhjJwxKofaxSmCj4CbN8iiTAU5zTp7nbC/6x Ql2AVzrh6OBOIx8eO881y+XPY9BJNyXQQ9jlkArGoFBFpAXIL945Ak5ORsJT9I3G/TPl z24g== X-Received: by 10.220.86.69 with SMTP id r5mr8993708vcl.42.1375129405897; Mon, 29 Jul 2013 13:23:25 -0700 (PDT) Date: Mon, 29 Jul 2013 16:23:18 -0400 From: Devyn Collier Johnson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: Python Mailing List Subject: Re: import syntax References: <51F6C720.2020404@Gmail.com> <20130729152051.46003bcf@bigbox.christie.dr> In-Reply-To: <20130729152051.46003bcf@bigbox.christie.dr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1375129414 news.xs4all.nl 15933 [2001:888:2000:d::a6]:58231 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:51489 On 07/29/2013 04:20 PM, Tim Chase wrote: > On 2013-07-29 16:09, Dave Angel wrote: >> On 07/29/2013 03:48 PM, Devyn Collier Johnson wrote: >>> The PEP8 recommends importing like this: >>> >>> import os >>> import re >>> >>> not like this: >>> >>> import os, re >> I got a bit further, and if I'm only using a couple of functions >> from the import, I'll list them in the comment. > If I just plan to use a small subset, I tend to reach for the > > from sys import stdout, stderr, exit > > sort of syntax. I find it makes my code read a bit more cleanly than > having to type "sys.stderr.write(...)" everywhere but is still pretty > readable. > > -tkc > > So, there are no advantages or disadvantages when disregarding readability? DCJ