From 5f8b20f14f8d2972436a780b6e6ac8907341d1ba Mon Sep 17 00:00:00 2001 From: Hye Seo Shin Date: Thu, 30 May 2019 21:21:15 +0900 Subject: [PATCH 1/2] Update test.py --- portfolioopt/test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/portfolioopt/test.py b/portfolioopt/test.py index 95bb23c..4badb66 100644 --- a/portfolioopt/test.py +++ b/portfolioopt/test.py @@ -6,12 +6,14 @@ class A: def __init__(self, n): self.n = n - class B(A): + def __init__(self, k): + super().__init__(k) self.k = k def printing(self, a): + print(self.n) l = B(4) From 1b92a484d9799973265cf48a930c4be990929f68 Mon Sep 17 00:00:00 2001 From: Hye Seo Shin Date: Thu, 30 May 2019 21:35:07 +0900 Subject: [PATCH 2/2] Revert "Update test.py" --- portfolioopt/test.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/portfolioopt/test.py b/portfolioopt/test.py index 4badb66..95bb23c 100644 --- a/portfolioopt/test.py +++ b/portfolioopt/test.py @@ -6,14 +6,12 @@ class A: def __init__(self, n): self.n = n -class B(A): +class B(A): def __init__(self, k): - super().__init__(k) self.k = k def printing(self, a): - print(self.n) l = B(4)