(In http://mail.python.org/pipermail/python-dev/2005-October/057251.html)
Eyal Lotem wrote:

> Name: Attribute access for all namespaces ...

>       global x ; x = 1
> Replaced by:
>       module.x = 1

Attribute access as an option would be nice, but might be slower.

Also note that one common use for a __dict__ is that you don't
know what keys are available; meeting this use case with
attribute access would require some extra machinery, such as
an iterator over attributes.

-jJ
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to