do class scoping the right way (no direct access to class stuff in methods)
This commit is contained in:
1 parent
5f0926d045
commit
1661196701
2 files changed
+11
-5
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user