We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 279e985 commit 103e6c5Copy full SHA for 103e6c5
memoization.py
@@ -3,6 +3,7 @@
3
import warnings
4
from functools import wraps
5
6
+__version__ = 'v0.0.2'
7
_cache = {}
8
9
@@ -166,3 +167,9 @@ def _retrieve_safe_function_id(func):
166
167
if function_id not in _cache.keys(): # panic
168
_error_unrecognized_function(func)
169
return function_id
170
+
171
172
+if __name__ == '__main__':
173
+ import sys
174
+ sys.stderr.write('python-memoization ' + __version__ + ': A minimalist functional memoization lib for Python\n')
175
+ sys.stderr.write('Go to https://github.com/lonelyenvoy/python-memoization for usage and more details.\n')
0 commit comments