提交 c69abdd2 authored 作者: notoraptor's avatar notoraptor

Update CEnumType.c_code_cache_version().

上级 560a4a56
......@@ -1190,4 +1190,6 @@ class CEnumType(EnumList):
fail=sub['fail'])
def c_code_cache_version(self):
return (1, super(CEnumType, self).c_code_cache_version())
# C code depends on (C constant name, Python value) associations (given by `self.items()`),
# so we should better take them into account in C code version.
return (1, tuple(self.items()), super(CEnumType, self).c_code_cache_version())
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论