do class scoping the right way (no direct access to class stuff in methods)

This commit is contained in:
David Halter
2012-05-28 02:10:42 +02:00
parent 5f0926d045
commit 1661196701
2 changed files with 11 additions and 5 deletions

View File

@@ -26,6 +26,11 @@ class TestClass(object):
self.var_
def ret(self, a1):
# should not know any class functions!
#? []
values
#? []
ret
return a1
# should not work