We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abd10d6 commit 455bb78Copy full SHA for 455bb78
graalpython/lib-graalpython/classmethod.py
@@ -43,12 +43,12 @@ class classmethod(object):
43
def __init__(self, func):
44
self.__func__ = func
45
46
- @__builtin__
47
- def __get__(self, instance, owner=None):
+ def __get__(self, obj, instance=None, owner=None):
48
if owner is None:
49
- return classmethod.method(type(instance), self.__func__)
+ return classmethod.method(type(instance), obj.__func__)
50
else:
51
- return classmethod.method(owner, self.__func__)
+ return classmethod.method(owner, obj.__func__)
52
53
54
classmethod.method = type(classmethod(None).__init__)
+classmethod.__get__ = __builtin__(classmethod.__get__)
0 commit comments