浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Cython: C-Extensions for Python

About Cython

Cython is a language that makes writing C extensions for the
Python language as easy as Python itself.
Cython is based on the well-known Pyrex, but supports more
cutting edge functionality and optimizations.

The Cython language is very close to the Python language, but
Cython additionally supports calling C functions and declaring
C types on variables and class attributes. This allows the
compiler to generate very efficient C code from Cython code.
The generated C code compiles with Python 2.4 and later (including Python 3).

This makes Cython the ideal language for wrapping external C libraries,
and for fast C modules that speed up the execution of Python code.

Documentation

 

posted on 2012-04-15 20:52  lexus  阅读(345)  评论(0编辑  收藏  举报