descriptors are now also working with classes. this means classmethod/staticmethod are now working

This commit is contained in:
David Halter
2012-07-19 18:29:04 +02:00
parent b432090f58
commit 4cd1efc5ba
3 changed files with 22 additions and 15 deletions

View File

@@ -47,5 +47,5 @@ class classmethod():
def __get__(self, obj, cls):
def _method(*args, **kwargs):
self._func(cls, *args, **kwargs)
return self._func(cls, *args, **kwargs)
return _method