On Tue, Jul 16, 2013 at 9:07 PM, Barry Warsaw <ba...@python.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > On Jul 16, 2013, at 07:34 PM, Tres Seaver wrote: > > >On 07/16/2013 07:09 AM, Nick Coghlan wrote: > > > >> I did find it interesting that we *don't* explicitly advise against > >> the use of "import *" for anything other than optional accelerator > >> modules or republishing internal interfaces through a public API, > >> even though we advice against the practice in the tutorial. Perhaps > >> another oversight worth correcting? > > > >+1. 'from foo import *' (from any source other than another module in > >the same package) is a code stench far worse than anything else PEP8 > >proscribes. > > Maybe we should disable it for anything that isn't at the interactive > prompt > <0.5 wink>. > Or how about dropping the whole ``from ... import ...`` format entirely? <0.5 wink; seriously, it's implementation is a pain and it has wonky semantics>
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com