
Philip Herron
This book is for developers who are familiar with the basics of C and Python programming and wish to learn Cython programming to extend their applications.
講的比較詳細,特別是embeed的那個例子,很不錯。cython本質是編譯成C再編譯執行,因此有兩種方式,擴展和嵌入,取決於可執行文件是誰。通過cython的public簽名,cython生成的c代碼不會被混淆,因此C可以反向調用py的函數,注意PyGilState和PyThreadState便可以方便快捷的寫出一個嵌入py的程序,比如你的cpp想嵌入py的話這樣就很方便