By the time I started my career, Git had already become the staple source control option in the software world. I worked with Git exclusively for nearly eight years before encountering a Subversion repo in the wild in my professional life.
Branching in Subversion isn’t as seamless as it is in Git. This isn’t a surprise given that svn is, in general, not as full-featured as Git. Subversion does support branching, however, and this article will walk you through the basics of creating and working on a branch using svn. …
The Python/C API: A Brief Introduction
The Python/C API brings together two of my two favorite things: Python and C.
The Python/C API allows C programmers to embed Python directly into C code by exposing aspects of CPython internals. It provides direct access to the Python interpreter from C, acting as a bridge between the two languages.
This C code calls Python’s platform.system().
On my system, this code prints out:
Platform name is Darwin
I built the code above on my Mac by running:
gcc -o example example.c -I<Python include directory> /opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/libpython3.8.dylib
Software, parenting, and hula hoops.