mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bpo-36743: __get__ is sometimes called without the owner argument (#12992)
This commit is contained in:
parent
84125fed2a
commit
0dac68f1e5
5 changed files with 24 additions and 13 deletions
|
@ -78,7 +78,7 @@ class EiffelDescriptor:
|
|||
self.__name__ = func.__name__
|
||||
self.__doc__ = func.__doc__
|
||||
|
||||
def __get__(self, obj, cls):
|
||||
def __get__(self, obj, cls=None):
|
||||
return EiffelMethodWrapper(obj, self)
|
||||
|
||||
def callmethod(self, inst, args, kwargs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue