O'Reilly logo

Learning Cython Programming by Philip Herron

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Advanced Cython

So far with Cython we have only been using C for all our examples and our code. But with Cython we can also target C++ and work with most of its constructs. With better support in each of the new releases, you can tell that this is getting some major development attention since most people use python::boost to embed Python in C++ code, which has a plethora of dependencies. So, if you're an avid user of C++, I would recommend checking up Cython release notes regularly to see more support features. Since updating to new versions of tools such as Cython and Bison doesn't really affect your code, it just makes your project more efficient and better with each release.

C++ constructs

I will go over a simple example of each of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required