Blog

Showpy Episode 5: Pointers from C to Python and Back

Written by Staff | Oct 17, 2010 7:00:00 AM

Here’s what’s going on in this tutorial:

  • We will be embedding Python in a small C program
  • For the sake of example, we will not use any third party wrappers around Python
  • For the sake of example, we will not return the modified buffer and length, but rather modify it directly from Python, effectively “passing a pointer” back and forth
  • For the sake of example, we will keep Python value/error checking at a minimum