> [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 "<string>", line 1, in ? > TypeError: attribute name must be string > [EMAIL PROTECTED]:~$ python -c "from bar import *; print x" > 20 > [EMAIL PROTECTED]:~$
> Hope this helps, Definitely. However, it would be better if the exception occurred on the bad assignment (e.g. __all__ = [x]) but probably it would be extremely hard to implement. Moreover, you can add items to __all__ in runtime. Well okay, this is not something humans do. :-) Another note: the same code was working with 2.3.x, the problem I'm having is only 2.3.4. - I should have checked the change log. Thank again -- Laszlo mailto:[EMAIL PROTECTED] web:http://designasign.biz -- http://mail.python.org/mailman/listinfo/python-list