summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_descrtut.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-09-21 19:29:08 (GMT)
committerGuido van Rossum <guido@python.org>2001-09-21 19:29:08 (GMT)
commit867a8d2e2688d837c67bf87eb9164528780f7bdc (patch)
tree17384a0aba0c05752f3d10e2ca18838d1ed815f7 /Lib/test/test_descrtut.py
parentdbb718fa8775731666bb9cbc73662fadee41ea8f (diff)
downloadcpython-867a8d2e2688d837c67bf87eb9164528780f7bdc.zip
cpython-867a8d2e2688d837c67bf87eb9164528780f7bdc.tar.gz
cpython-867a8d2e2688d837c67bf87eb9164528780f7bdc.tar.bz2
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.
Diffstat (limited to 'Lib/test/test_descrtut.py')
-rw-r--r--Lib/test/test_descrtut.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_descrtut.py b/Lib/test/test_descrtut.py
index a0fe0f1..e72567d 100644
--- a/Lib/test/test_descrtut.py
+++ b/Lib/test/test_descrtut.py
@@ -192,7 +192,7 @@ Instead, you can get the same information from the list type:
'__delitem__',
'__eq__',
'__ge__',
- '__getattr__',
+ '__getattribute__',
'__getitem__',
'__getslice__',
'__gt__',