replacing instance __setattr__

Robin Becker robin at jessikat.fsnet.co.uk
Thu Jul 4 16:19:38 EDT 2002


In article <mailman.1025803028.29763.python-list at python.org>, Tim Peters
<tim.one at comcast.net> writes
>[Robin Becker]
>> special methods aside I find in 'Unifying types and classes in Python
>> 2.2' http://www.python.org/2.2/descrintro.html#mro
>> that the object is always searched last for methods which seems a bit
>> daft and obviously different for non-method attributes.
>
>The builtin class named "object" is searched last for methods.  When you say
>"the object", I expect you're thinking of the x in
>
>    x.somemethod()
>
.....
that's my confusion. Also as you point out I seem to think that methods
are data attributes which are callable, obviously my failure again. I
obviously come from a more dynamic direction all these distinctions seem
pretty arcane and silly to tcler's, lispers, gpmers etc.
-- 
Robin Becker



More information about the Python-list mailing list