cython/cython

public and api generate invalid header files when types aren't builtin in C

Open

#1,800 创建于 2017年7月28日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)Python (8,663 star) (1,517 fork)batch import
Code GenerationP: minordefecthelp wanted

描述

If I did this in test.pyx:

from libcpp.string cimport string

cdef public api string t(string s):
    return string()

the generated header files must be included after as they use std::string but don't include it.

贡献者指南