[Python-3000] from .foo import *

Neal Norwitz nnorwitz at gmail.com
Tue Mar 18 18:21:54 CET 2008


On Tue, Mar 18, 2008 at 11:59 AM, Benjamin Peterson
<musiccomposition at gmail.com> wrote:
>
>
>
> On Tue, Mar 18, 2008 at 10:49 AM, Aahz <aahz at pythoncraft.com> wrote:
> >
> > 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.
> I suppose issue 2400 should be closed, then.

The reason that 2400 was opened was to remove the restriction. :-)  If
I worded it wrong, feel free to add a comment to it.  The point of
adding the issue was that the SyntaxError should not be generated and
the import should do the right thing.

n

n


More information about the Python-3000 mailing list