Package memtools :: Module pattern :: Class Memorized
[hide private]

Class Memorized

source code


This class wraps a normal callable and returns a memorized callable with a "memo" storage. End users are not intended to know what happens inside this class, neither they should know about it.
Instance Methods [hide private]
 
__init__(self, f, memo, hashing_function=<built-in function openssl_md5>, debug=False)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__create_key(self, f, *args, **kwargs) source code
 
__call__(self, *args, **kwargs) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, f, memo, hashing_function=<built-in function openssl_md5>, debug=False)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)