Style question: Importing modules from packages - 'from' vs 'as'
Ethan Furman
ethan at stoneleaf.us
Thu Dec 4 13:01:40 EST 2014
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~
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20141204/39d824c2/attachment.sig>
More information about the Python-list
mailing list