fixed a problem that combined __getattr__ and usages

This commit is contained in:
David Halter
2013-08-13 15:39:26 +04:30
parent 2359ccbeb1
commit a895561f1a
2 changed files with 14 additions and 0 deletions

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
# -----------------