We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What to do about this?
https://github.com/chaoflow/metachao/blob/master/src/metachao/tests/test_intermethod.py#L31
class C(object): def f(self): return 1 def g(self): return self.f() * 2 class a1(Aspect): def f(self): return 10 c = C() self.assertEqual(a1(C)().f(), 10) self.assertEqual(a1(c).f(), 10) # BUT: self.assertEqual(a1(C)().g(), 20) self.assertEqual(a1(c).g(), 2)
g in the last line is bound to c, not a1(c), and therefore c.f is called instead of a1.f.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What to do about this?
https://github.com/chaoflow/metachao/blob/master/src/metachao/tests/test_intermethod.py#L31
g in the last line is bound to c, not a1(c), and therefore c.f is called instead of a1.f.
The text was updated successfully, but these errors were encountered: