提交 25a67ed2 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Mention the need to call `import_array();` if type depends on numpy

上级 070653b8
......@@ -94,6 +94,9 @@ the most important ones:
Allows you to specify code that will be executed once when the
module is initialized, before anything else is executed.
For instance, if a type depends on NumPy's C API, then
``'import_array();'`` has to be among the snippets returned
by ``c_init_code()``.
.. method:: c_support_code()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论