]> granicus.if.org Git - python/commit
Change the name of the __getattr__ special method for new-style
authorGuido van Rossum <guido@python.org>
Fri, 21 Sep 2001 19:29:08 +0000 (19:29 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 21 Sep 2001 19:29:08 +0000 (19:29 +0000)
commit867a8d2e2688d837c67bf87eb9164528780f7bdc
tree17384a0aba0c05752f3d10e2ca18838d1ed815f7
parentdbb718fa8775731666bb9cbc73662fadee41ea8f
Change the name of the __getattr__ special method for new-style
classes to __getattribute__, to make it crystal-clear that it doesn't
have the same semantics as overriding __getattr__ on classic classes.

This is a halfway checkin -- I'll proceed to add a __getattr__ hook
that works the way it works in classic classes.
Lib/test/test_descr.py
Lib/test/test_descrtut.py
Objects/typeobject.c