-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
Closed as not planned
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement
Description
Bug report
Bug description:
IMHO, calling an inherited __call__ method should work without spelling it out.
class Foo:
def __call__(self):
print("A")
class Bar(Foo):
def __call__(self):
print("B")
super()() # TypeError: 'super' object is not callable
super().__call__() # works
Bar()()CPython versions tested on:
3.14
Operating systems tested on:
Linux
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement