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


Groups > comp.lang.python > #81925

Re: Style question: Importing modules from packages - 'from' vs 'as'

Date 2014-12-04 10:01 -0800
From Ethan Furman <ethan@stoneleaf.us>
Subject Re: Style question: Importing modules from packages - 'from' vs 'as'
References <2047880662.4611734.1417714597653.JavaMail.root@sequans.com>
Newsgroups comp.lang.python
Message-ID <mailman.16571.1417716106.18130.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On 12/04/2014 09:36 AM, Jean-Michel Pichavant wrote:
> 
> I know you specifically stated you didn't want to do this but
> 
>   import os
> 
>   os.path.isfile()
> 
> is the best option imo, especially from the reader point of view ("Namespaces are one honking great idea").

But, "Flat is better than nested" !  ;)

--
~Ethan~

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


Thread

Re: Style question: Importing modules from packages - 'from' vs 'as' Ethan Furman <ethan@stoneleaf.us> - 2014-12-04 10:01 -0800

csiph-web