Software Carpentry
Integration


Introduction


You Can Skip This Lecture If...


Running External Programs


The subprocess Module


Running In Place


Running With Arguments


Capturing Output


Providing Input


Deadlock


Pros and Cons


Plan B: Integrating with C


How Python Represents Objects


Calling Conventions


Boilerplate


Loading and Calling


What About C++?


SWIG


Integrating the Other Way


Loading Modules


Plugin Frameworks


Manual Loading


Using Manual Loading


Manipulating Namespaces


Summary