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

Summary

I think this chapter covers quite a lot of the Python internals that you should care about. If you have ever tackled writing a native Python module for a multithreaded system, you have undoubtedly come across a lot of issues; when you get comfortable, Cython really does make it so much simpler. If you use the gil keywords, we can handle this in a more native way. The other major problem people have is the garbage collector and making sure your reference counting is correct. And really, unless you are a Python developer writing a module from scratch in C, this becomes a major task that needs a lot of expertise and time dedicated to maintenance. With Cython, if you know C and Python, you are sorted.

Chapter 6, Further Reading, is the final ...

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