Skip to content

Instantly share code, notes, and snippets.

@tshatrov
Created February 28, 2019 15:31
Show Gist options
  • Save tshatrov/0abe1798cc82afa4fdb96692e3256ab8 to your computer and use it in GitHub Desktop.
Save tshatrov/0abe1798cc82afa4fdb96692e3256ab8 to your computer and use it in GitHub Desktop.
Why doesn't this work?
class AA():
def foo(self, x):
return x + 1
class BB(AA):
def foo(self, x):
return [super().foo(z) for z in x]
bb = BB()
bb.foo([1, 2, 3])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment