[Python-Dev] Those import related syntax errors again...

Thomas Wouters thomas@xs4all.net
Tue, 20 Feb 2001 13:30:45 +0100


On Tue, Feb 20, 2001 at 11:12:23PM +1100, Mark Hammond wrote:
> Hi all,
> 	I'm a little confused by the following exception:

>   File "f:\src\python-cvs\xpcom\server\policy.py", line 18, in ?
>     from xpcom import xpcom_consts, _xpcom, client, nsError,
> ServerException, COMException

> exceptions.SyntaxError: BuildInterfaceInfo: exec or 'import *' makes names
> ambiguous in nested scope (__init__.py, line 71)

[ However, no 'from foo import *' to be found, except at module level ]

> Any clues?

I don't have the xpcom package, so I can't check myself, but have you
considered 'exec' as well as 'from foo import *' ? 

-- 
Thomas Wouters <thomas@xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!