Skip to main content

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


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)

Uploaded Source

Built Distribution

mem-1.0.0-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page