Re[2]: import fails

2004-12-05 Thread Laszlo Zsolt Nagy
Hello Fredrik, Sunday, December 5, 2004, 8:31:45 PM, you wrote: > Laszlo Zsolt Nagy wrote: >> Definitely. However, it would be better if the exception occurred on the >> bad assignment (e.g. __all__ = [x]) > it does happen on the bad assignment (i.e. from foo import *) Well, the traceback isn

Re[2]: import fails

2004-12-05 Thread Laszlo Zsolt Nagy
> [EMAIL PROTECTED]:~$ cat foo.py > x = 10 > __all__ = [x] > [EMAIL PROTECTED]:~$ cat bar.py > x = 20 > __all__ = ['x'] > [EMAIL PROTECTED]:~$ python -c "from foo import *; print x" > Traceback (most recent call last): > File "", line 1, in ? > TypeError: