diff options
author | hut <hut@lavabit.com> | 2009-12-10 01:37:14 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-12-10 01:37:14 +0100 |
commit | 871c502d58055c7611f0763eaa71a7fafad7efdc (patch) | |
tree | 0f0080aac9f8bdbee5a7d6ca9bf6bb0d4866ffb7 /test5.py | |
parent | aea67778ad2366b4e4171008af7b0dcd5d91f93b (diff) | |
download | ranger-871c502d58055c7611f0763eaa71a7fafad7efdc.tar.gz |
Restructuration
Diffstat (limited to 'test5.py')
-rw-r--r-- | test5.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test5.py b/test5.py new file mode 100644 index 00000000..682a716f --- /dev/null +++ b/test5.py @@ -0,0 +1,26 @@ +class A: + def foo(self, x): + y = x + 1 + print(y) + return y + + @staticmethod + def zar(): + print("l o l") + +class B(A): + def bar(self, x): + y = self.foo(x) + 3 + print(y) + return y + +class C(): + def foo(self, x): + y = x - 1 + print(y) + return y + +a = C() +A.foo(a, 5) + +B.zar() |