[Python-3000] from .foo import *

Aahz aahz at pythoncraft.com
Tue Mar 18 16:49:45 CET 2008


On Tue, Mar 18, 2008, "Martin v. L?wis" wrote:
>
> When I do a relative star import, I current get
> 
> SyntaxError: 'import *' not allowed with 'from .'
> 
> What's the reason for this restriction?

It was the first step in removing the ability to use "from *" at all.  I
don't have time right now to find the discussion, but I can do that later
if you want.

> Is it ok to remove it?

As always, that's up to Guido.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"It is easier to optimize correct code than to correct optimized code."
--Bill Harlan


More information about the Python-3000 mailing list