On 6/16/10 1:23 AM, Christian Heimes wrote:
>> There aren't any; modules do not follow the class object protocol. They
>> are simple types with a __dict__ (which you can't change, either, so no
>> replacing it with a dict that implements __setattr__).
> 
> You are wrong, my friend. :)
> 
> Modules follow the new style class and instance protocol. Modules aren't
> classes but instances of the internal module type. Since you can't
> overwrite magic methods on instances of new style classes you can't
> overwrite __setattr__ on module level, too.

Well, fine, be that way, all right and correct and shiznit. :)

-- 

   Stephen Hansen
   ... Also: Ixokai
   ... Mail: me+list/python (AT) ixokai (DOT) io
   ... Blog: http://meh.ixokai.io/

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to