提交 2f71fded authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Add comment explaining empty c_cleanup.

上级 3a0dcdbc
...@@ -557,6 +557,8 @@ if (py_%(name)s == NULL) { %(freefunc)s(%(name)s); } ...@@ -557,6 +557,8 @@ if (py_%(name)s == NULL) { %(freefunc)s(%(name)s); }
return s % dict(name=name, freefunc=freefunc) return s % dict(name=name, freefunc=freefunc)
def c_cleanup(self, name, sub): def c_cleanup(self, name, sub):
# No need to do anything here since the CObject/Capsule will
# free the data for us when released.
return "" return ""
def c_code_cache_version(self): def c_code_cache_version(self):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论