SyntaxError: 'import *' not allowed with 'from .'
17 Jan
2008
17 Jan
'08
12:20 a.m.
I posted this on c.l.py but I didn't get a definite answer so I am asking again here: is it documented anywhere that "from .relative.module import *' is syntax error? Unless I missed it, PEP 328 doesn't mention anything about it. Also, while I understand the general caveats and warnings against "import *", at first glance it seems inconsistent to disallow it for relative imports while it is valid for absolute. Are there any particular reasons that allowing relative '*' imports is harder to implement, more fragile or generally worse in some way ? George
5938
Age (days ago)
5938
Last active (days ago)
0 comments
1 participants
participants (1)
-
George Sakkis