[Python-ideas] Allow 'import star' with namespaces

dag.odenhall at gmail.com dag.odenhall at gmail.com
Fri May 6 09:20:26 CEST 2011


On 6 May 2011 00:24, Brendan Moloney <moloney at ohsu.edu> wrote:
> Benjamin Peterson [benjamin at python.org] wrote:
>> import * is generally frowned upon, so encouraging its use by extending it is
>> not a good idea.
>
> Well it is frowned upon precisely because it pollutes the current namespace. This change would eliminate that issue.

I like this idea, except it's inconsistent with from-import-star, the
latter which does *not* get you sub-packages or modules.



More information about the Python-ideas mailing list