提交 5742210e authored 作者: notoraptor's avatar notoraptor

Extend COp.c_code_cache_version().

上级 c69abdd2
......@@ -1413,7 +1413,10 @@ class COp(Op):
return []
def c_code_cache_version(self):
return hash(tuple(self.func_codes))
version = (hash(tuple(self.func_codes)), )
if hasattr(self, 'params_type'):
version += (self.params_type.c_code_cache_version(), )
return version
def c_init_code(self):
"""
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论