Re: SyntaxError: 'import *' not allowed with 'from .'

2008-01-15 Thread Steven Bethard
George Sakkis wrote: > Unless I missed it, PEP 328 doesn't mention anything about this. > What's the reason for not allowing "from .relative.module import *' ? Generally, there's a move away from all "import *" versions these days. For example, Python 3.0 removes the ability to use "import *" wit

Re: SyntaxError: 'import *' not allowed with 'from .'

2008-01-14 Thread Carl Banks
On Jan 14, 2:37 pm, George Sakkis <[EMAIL PROTECTED]> wrote: > Unless I missed it, PEP 328 doesn't mention anything about this. > What's the reason for not allowing "from .relative.module import *' ? I'm just guessing: it could accidentally create infinite recursion. Or, perhaps something more sub

Re: SyntaxError: 'import *' not allowed with 'from .'

2008-01-14 Thread George Sakkis
On Jan 14, 6:01 pm, Ben Finney <[EMAIL PROTECTED]> wrote: > George Sakkis <[EMAIL PROTECTED]> writes: > > Unless I missed it, PEP 328 doesn't mention anything about this. > > What's the reason for not allowing "from .relative.module import *' > > ? > > It makes the code much harder to follow visua

Re: SyntaxError: 'import *' not allowed with 'from .'

2008-01-14 Thread Ben Finney
George Sakkis <[EMAIL PROTECTED]> writes: > Unless I missed it, PEP 328 doesn't mention anything about this. > What's the reason for not allowing "from .relative.module import *' > ? It makes the code much harder to follow visually and inspect with static analysis tools, since there's no way to s

SyntaxError: 'import *' not allowed with 'from .'

2008-01-14 Thread George Sakkis
Unless I missed it, PEP 328 doesn't mention anything about this. What's the reason for not allowing "from .relative.module import *' ? George -- http://mail.python.org/mailman/listinfo/python-list