# Extend_Python **Repository Path**: DaLun/Extend_Python ## Basic Information - **Project Name**: Extend_Python - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-16 - **Last Updated**: 2021-03-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Extend Python with C 实际上ctypes、Python C API或者基于API的Cython,逻辑都是:
`接收Python对象`->`转换为C对象`->`调用C函数`->`返回值转换为Python对象`->`返回`
的流程,较为值得关切的几点是:
指针传参问题
数组传递问题
结构体传递问题
高级一点情况会考虑如何绕过GIL提升速度