Skip to content

Instantly share code, notes, and snippets.

@u2386
Created July 21, 2018 07:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save u2386/8bc5f9fba3759dce32c0c64276a1464e to your computer and use it in GitHub Desktop.
Save u2386/8bc5f9fba3759dce32c0c64276a1464e to your computer and use it in GitHub Desktop.
# 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