[Python-Dev] bug or a feature?
Guido van Rossum
guido at python.org
Fri Jun 13 00:07:37 CEST 2008
On Thu, Jun 12, 2008 at 2:42 PM, Phillip J. Eby <pje at telecommunity.com> wrote:
> At 12:46 PM 6/12/2008 -0700, Guido van Rossum wrote:
>>
>> The intention was for these dicts to be used as namespaces.
>
> By "these" do you mean type object __dict__ attributes, or *all* __dict__
> attributes?
Hadn't thought of that one! Since __dict__ is widely advertised as
being, well, a dict, it may be harder to enforce this for __dict__
instances of other objects. I'd like to tighten the rules here too,
but only if it actually helps Python implementations other than
CPython.
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev
mailing list