Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; "subject:' ": 0.07; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'subject:modules': 0.09; '~ethan~': 0.09; 'subject:question': 0.10; 'filename:fname piece:signature': 0.16; 'imo,': 0.16; 'wrote:': 0.18; 'import': 0.22; 'header:User-Agent:1': 0.23; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'specifically': 0.29; 'am,': 0.29; 'especially': 0.30; 'option': 0.32; 'reader': 0.33; 'subject:from': 0.34; 'but': 0.35; "didn't": 0.36; 'charset:us- ascii': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:173': 0.61; 'great': 0.65; 'stated': 0.69 Date: Thu, 04 Dec 2014 10:01:40 -0800 From: Ethan Furman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Style question: Importing modules from packages - 'from' vs 'as' References: <2047880662.4611734.1417714597653.JavaMail.root@sequans.com> In-Reply-To: <2047880662.4611734.1417714597653.JavaMail.root@sequans.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="C5298NhF4kTGRqSlmVQnqCIGPOrMk2uwP" 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: 46 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1417716106 news.xs4all.nl 2885 [2001:888:2000:d::a6]:44656 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:81925 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --C5298NhF4kTGRqSlmVQnqCIGPOrMk2uwP Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable On 12/04/2014 09:36 AM, Jean-Michel Pichavant wrote: >=20 > I know you specifically stated you didn't want to do this but >=20 > import os >=20 > os.path.isfile() >=20 > is the best option imo, especially from the reader point of view ("Name= spaces are one honking great idea"). But, "Flat is better than nested" ! ;) -- ~Ethan~ --C5298NhF4kTGRqSlmVQnqCIGPOrMk2uwP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBAgAGBQJUgKGFAAoJENZ7D1rrH75NS+0QAKv1WaWy/xdc+QAUXDnd1teB /5+waU8HrzK5epRdYhbQruujW5CklmGUOD+UBmdIbAuXV0nSmd9v8dSf/YGPItGX 5V/upsTQZ3DZXTJ0A2peUBwJUyUFGE1Q922SejNJ4MV9dJ6eTvcs0jqaeQySOywd HGqgTBWhin6K3uHwiGov1d/hYYyrE3BeYwaceKA5XAhHtY4ghqJ6RWLXVKyx+9GB uqKFZqG9fSPcO52f/LIvX2HjfAICyr0LZVQdKQYlEDundpmfqW5+MGTY6kHfvZYq LCHoSJJnQTIXxR12+GedOkGTYQMfkpBLQJuf64sa4nOgxhf9OsAsDQNaXFjdUBHm 3MLHKsvs9VxdYZpwhieIXqaY0JzO7BqABM6lLDqnNch5CP5V87IKWdP1ttg3fFy9 ZxmWZ26BniGkfbQ5/hZ4BEjnd+tbP/xhGJgHGdVJMbFwARJo4L3Tf6Mxm+urWaPv nGOE19ADyx8bTjoI+pLp82hKFqDVaJ0VJljeenpt/eghxhD7IfsShfbRW7X+Dmk2 yd9fYYpWNhGxTKQwKtxi615VBsbFkGw3wnamZ5ZCpmONOfAL1u34STxdss8m3dLa 0Kgf4adNefFABboepd4OuNqJRnmTOq07aMpeY8kiR99/2cgM7DOMOM00saMOFRAZ zokUHKaNfZDB3z01sQR8 =xkh3 -----END PGP SIGNATURE----- --C5298NhF4kTGRqSlmVQnqCIGPOrMk2uwP--