memorize tool
Project description
file memorize (under construction)
import mem
def add_str(s0, s1):
time.sleep(3)
return s0 + s1
# memorize tool [mem]
memorized_func = mem(
add_str, # 計算結果をメモ化したい関数
"add_str", # 関数識別用の文字列
confirm = False, # メモ読み込みの確認有無
mem_dir = "./" # メモの置き場所
)
ret_str = memorized_func("Hello", ", World!!\n")
print(ret_str)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mem-1.0.0.tar.gz
(2.9 kB
view hashes)
Built Distribution
mem-1.0.0-py3-none-any.whl
(3.6 kB
view hashes)