[Python-Dev] Early PEP draft (For Python 3000?)

Jim Jewett jimjjewett at gmail.com
Wed Oct 19 15:23:35 CEST 2005


(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


More information about the Python-Dev mailing list