documentation

This commit is contained in:
Dave Halter
2014-12-15 15:10:44 +01:00
parent f0c6e5709c
commit 24cfa62c8a

View File

@@ -46,8 +46,8 @@ def memoize_default(default=None, evaluator_is_first_arg=False, second_arg_is_ev
class CachedMetaClass(type):
"""
This is basically almost the same than the decorator above, it just caches
class initializations. I haven't found any other way, so I'm doing it with
meta classes.
class initializations. Either you do it this way or with decorators, but
with decorators you lose class access (isinstance, etc).
"""
@memoize_default(None, second_arg_is_evaluator=True)
def __call__(self, *args, **kwargs):