Created
July 21, 2018 07:39
-
-
Save u2386/8bc5f9fba3759dce32c0c64276a1464e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
class A(list): | |
def __call__(self): | |
return "Good" | |
class B(object): | |
def __init__(self, i): | |
self.i = i | |
a = A([1, 2]) | |
b = B(a) | |
print(b.i) | |
print(b.i()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment