about summary refs log tree commit diff stats
path: root/test5.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-10 01:37:14 +0100
committerhut <hut@lavabit.com>2009-12-10 01:37:14 +0100
commit871c502d58055c7611f0763eaa71a7fafad7efdc (patch)
tree0f0080aac9f8bdbee5a7d6ca9bf6bb0d4866ffb7 /test5.py
parentaea67778ad2366b4e4171008af7b0dcd5d91f93b (diff)
downloadranger-871c502d58055c7611f0763eaa71a7fafad7efdc.tar.gz
Restructuration
Diffstat (limited to 'test5.py')
-rw-r--r--test5.py26
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()