Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

The Cython language is a superset of the Python language, used to quickly generate Python C extensions. You should also tag with Python when using this tag.

The Cython language is a superset of the Python language, used to quickly extend and optimize Python code.

The Cython compiler outputs a C or C++ representation of this Python superset, with all necessary boilerplate code in place, ready to be built and loaded as a Python extension.

Cython supplements the Python syntax with a selection of powerful C and C++ idioms (e.g. pointers and references, struct compands, typedef declarations, &c) and a suite of complementary keywords. Since it’s a superset, valid Python modules are also valid Cython extensions… existing code can there be optimized significantly by simply resaving it, and subsequently adding Cython structures to taste.

Cython is used across the Python ecosystem, from academic bespoke programming projects, on up through high-profile projects like Instagram.

Tutorials and technical information can be had from the official Cython website, cython.org. Practical examples are also available through StackOverflow.

Questions about Cython should also be tagged with [python].

history | excerpt history