Suggesting for overloading the assign operator

Aahz aahz at pythoncraft.com
Thu Jul 3 17:52:10 CEST 2003


In article <6f03c4a5.0307022119.2b0a4bc1 at posting.google.com>,
Rim <rimbalaya at yahoo.com> wrote:
>
>I think the suggestion to solve the problem by using the __setattr__
>special method will not work because it intercepts attribute
>assignment of the form "self.attr = somthing", and not what I want,
>which is "name = something".

Why don't you follow my suggestion about creating your own language?
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Usenet is not a democracy.  It is a weird cross between an anarchy and a
dictatorship.  




More information about the Python-list mailing list