bpo-36743: __get__ is sometimes called without the owner argument (#12992)

This commit is contained in:
Raymond Hettinger 2019-08-29 01:27:42 -07:00 committed by GitHub
parent 84125fed2a
commit 0dac68f1e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 13 deletions

View file

@ -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):