__set_attr__

Amritansh Raghav amritansh at mobilian.com
Wed Jan 24 20:59:19 EST 2001


(Newbie alert - its been less than a week)

Under what circumstances does __set_attr__ get callled? I thought it was
only if the name wasnt found in the dictionary. However I can see my
function being called even when the name is present. (I print out
self.__dict__ and also do a self.__dict__.has_key(name) just to make sure
there isnt a spelling error).
This is happening within my constructor so I wonder if I need to do
something special here
Any help is appreciated
Thanks





More information about the Python-list mailing list