fixed a problem that combined __getattr__ and usages

This commit is contained in:
David Halter committed 2013-08-13 15:39:26 +04:30
1 parent 2359ccbeb1
commit a895561f1a
2 files changed
+14

No files matched your search

+10
View File
@@ -132,6 +132,16 @@ class TestInstanceVar():
self._instance_var
class NestedClass():
def __getattr__(self, name):
return self
# Shouldn't find a definition, because there's no name defined (used ``getattr``).
#< (0, 14),
NestedClass().instance
# -----------------
# inheritance
# -----------------