[Python-Dev] Early PEP draft (For Python 3000?)
jimjjewett at gmail.com
Wed Oct 19 15:23:35 CEST 2005
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.
More information about the Python-Dev